From 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 12:13:46 +0000 Subject: Adopt a more C style for scripts and remove vim settings. --- init.d/hostname | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.d/hostname') diff --git a/init.d/hostname b/init.d/hostname index c5538c52..448f0b00 100755 --- a/init.d/hostname +++ b/init.d/hostname @@ -4,15 +4,15 @@ description="Sets the hostname of the machine." -depend() { +depend() +{ need checkroot } -start() { +start() +{ hostname=${hostname-${HOSTNAME-localhost}} ebegin "Setting hostname to ${hostname}" hostname "${hostname}" eend $? "Failed to set the hostname" } - -# vim: set ts=4 : -- cgit v1.2.3