]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fixed dhclient dhcp options saving
authorHarald Hoyer <harald@redhat.com>
Mon, 18 May 2009 14:08:58 +0000 (16:08 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 18 May 2009 14:08:58 +0000 (16:08 +0200)
modules.d/40network/dhclient-script

index 103e5f0aa43f8a1f8b7625bc356255ef93f3a776..895ed1ba94321fcf909f144c1747193d167df7b3 100755 (executable)
@@ -19,8 +19,8 @@ case $reason in
        for s in $new_domain_name_servers; do
            echo "nameserver $s" >> /etc/resolv.conf
        done
-       set |grep -e '^new_[a-z_]=' |while read line; do
-           echo "${line%%=*}=\'${line#*=}\'">>/net.$interface.dhcpopts
+       set |grep -E '^new_[a-z_]+=' |while read line; do
+           echo "${line%%=*}='${line#*=}'">>/net.$interface.dhcpopts
        done
        >/net.$interface.up ;;
     *) ;;