wok-next annotate udhcpc6-fake/stuff/sbin/udhcpc @ rev 15149
php: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 13:25:02 2013 +0000 (2013-08-15) |
parents | |
children |
rev | line source |
---|---|
pascal@7145 | 1 #/bin/sh |
pascal@7145 | 2 |
pascal@7145 | 3 INTERFACE=eth0 |
pascal@7145 | 4 while [ -n "$1" ]; do |
pascal@7145 | 5 [ "$1" == "-i" ] && INTERFACE=$2 |
pascal@7145 | 6 shift |
pascal@7145 | 7 done |
pascal@7145 | 8 |
pascal@7145 | 9 exec /usr/sbin/dhclient -e IF_METRIC=100 \ |
pascal@7145 | 10 -pf /var/run/dhclient.$INTERFACE.pid \ |
pascal@7145 | 11 -lf /var/lib/dhcp3/dhclient.$INTERFACE.leases \ |
pascal@7145 | 12 -cf /etc/dhclient.conf \ |
pascal@7145 | 13 -sf /etc/dhclient-script \ |
pascal@7145 | 14 $INTERFACE |