summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/bin/dhcpmkconfig
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/initrd-stuff/bin/dhcpmkconfig')
-rwxr-xr-xinitramfs/initrd-stuff/bin/dhcpmkconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/bin/dhcpmkconfig b/initramfs/initrd-stuff/bin/dhcpmkconfig
index 86fd42c7..0fd7583a 100755
--- a/initramfs/initrd-stuff/bin/dhcpmkconfig
+++ b/initramfs/initrd-stuff/bin/dhcpmkconfig
@@ -4,9 +4,10 @@
# clients used within OpenSLX initramfs. The result is written in unified
# form to the /etc/machine-setup file
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 15-12-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 09-01-2007
# Lars Mueller, 23-06-2006
# Oliver Tappe, 23-06-2006
+# Michael Janczyk, 09-01-2007
#
# (c) 2006 - RZ Universitaet Freiburg
@@ -57,12 +58,14 @@ enabled via kernel command\n# line)." >>$cfgfile
dhcl="udhcpc"; echo -e "$cfgmsg\n$infomsg" >>$cfgfile
# if $cfgfile is changed change target for set output accordingly
unset infomsg HOME IFS mask lease interface cfgmsg cfgfile
+ unset DEBUGLEVEL
set | sed \
-e "s,^P.*,,;s,ntpsrv,ntp_servers,;s,ip,clientip," \
-e "s,serverid,serverip,;s,subnet,subnet_mask," \
-e "s,router,gateway,;s,hostname,host_name," \
-e "s,domain,domain_name,;s,dns,domain_name_servers," \
-e "s,broadcast,broadcast_address,;s,dhc.*,,;/^$/d" \
+ -e "/OPTIND.*/d" \
>>/tmp/confviadhcp
;;
esac