[Initng-svn] r2713 - initng/initfiles/system

svn at initng.thinktux.net svn at initng.thinktux.net
Wed Jan 4 16:29:41 CET 2006


Author: jimmy
Date: Wed Jan  4 16:29:41 2006
New Revision: 2713

Modified:
   initng/initfiles/system/hostname.ii
Log:
Fixed hostname.ii, please Deac, test scripts before commit.


Modified: initng/initfiles/system/hostname.ii
==============================================================================
--- initng/initfiles/system/hostname.ii	(original)
+++ initng/initfiles/system/hostname.ii	Wed Jan  4 16:29:41 2006
@@ -15,8 +15,11 @@
 		# isn't setup, then we shouldn't go reseting the configuration #38172.
 		if [ -n "${myhost}" -a "${myhost}" != "(none)" ]
 		then
-		    
-		else if [ -f /etc/hostname ]
+		    echo "Hostname alredy set"
+		    exit 0
+		fi
+		
+		if [ -f /etc/hostname ]
 		then
 			myhost="`@cat@ /etc/hostname`"
 		else


More information about the Initng-svn mailing list