wok-next diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/udhcpc6-fake/stuff/sbin/udhcpc	Thu Aug 15 13:25:02 2013 +0000
     1.3 @@ -0,0 +1,14 @@
     1.4 +#/bin/sh
     1.5 +
     1.6 +INTERFACE=eth0
     1.7 +while [ -n "$1" ]; do
     1.8 +	[ "$1" == "-i" ] && INTERFACE=$2
     1.9 +	shift
    1.10 +done
    1.11 +
    1.12 +exec /usr/sbin/dhclient -e IF_METRIC=100 \
    1.13 +	-pf /var/run/dhclient.$INTERFACE.pid \
    1.14 +	-lf /var/lib/dhcp3/dhclient.$INTERFACE.leases \
    1.15 +	-cf /etc/dhclient.conf \
    1.16 +	-sf /etc/dhclient-script \
    1.17 +	$INTERFACE