There's a bug in ifup-post near the bottom: if [ ... \ -a need hostname \ ... Which doesn't work since test doesn't eval the function; suggested fix: if need_hostname && [ ... This bug causes the hostname to be set even when need_hostname is 0
*** This bug has been marked as a duplicate of 58946 ***