if checkbootparam 'hostname' ; then
HOSTNAME="$(getbootparam 'hostname' 2>>$DEBUG)"
einfo "Setting hostname to $HOSTNAME as requested."
- sed -i "s/^127.0.0.1.*localhost/127.0.0.1 $HOSTNAME localhost/" /etc/hosts
- hostname $HOSTNAME ; eend $?
+ grml-hostname $HOSTNAME >>$DEBUG ; RC=$?
+ [ "$RC" = "0" ] && hostname $HOSTNAME
+ eend $RC
else
hostname --file /etc/hostname
fi
+grml-autoconfig (0.9.5) unstable; urgency=low
+
+ * Bootoption hostname: use grml-hostname to adjust configuration
+ files on the fly. [Closes: gf-issue33]
+
+ -- Michael Prokop <mika@grml.org> Tue, 02 Feb 2010 14:33:09 +0100
+
grml-autoconfig (0.9.4) unstable; urgency=low
* If there's no lang=... bootoption present default to lang=en (except