etc/grml/pump-scripts.d/set-hostname: drop unnecessary if... clause (thanks mrud...
authorMichael Prokop <mika@grml.org>
Sun, 18 Oct 2009 19:30:06 +0000 (21:30 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 18 Oct 2009 19:30:06 +0000 (21:30 +0200)
etc/grml/pump-scripts.d/set-hostname

index 9aec368..0401075 100755 (executable)
@@ -16,8 +16,6 @@ if ! checkbootparam 'nodhcphostname' && [ -f /etc/grml_cd ] ; then
     hostname=$(busybox nslookup $3 | awk '/Address 1: '$3'/ {print $4}')
     [ -n $hostname ] || exit 1
 
     hostname=$(busybox nslookup $3 | awk '/Address 1: '$3'/ {print $4}')
     [ -n $hostname ] || exit 1
 
-    if [ -n "$hostname" ] ; then
-        grml-hostname $hostname
-        hostname -F /etc/hostname
-    fi
+    grml-hostname $hostname
+    hostname -F /etc/hostname
 fi
 fi