wok diff udhcpc6-fake/stuff/sbin/udhcpc @ rev 19642

linld: fix cpuhaslm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 21 09:21:18 2017 +0100 (2017-01-21)
parents
children 02c70d036ea0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/udhcpc6-fake/stuff/sbin/udhcpc	Sat Jan 21 09:21:18 2017 +0100
     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