From 226b19529a6cb960b6c4ff6bd1681e5fae9aaa68 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Jan 2013 15:30:41 +0100 Subject: [plymouth] remove default prefix --- remote/tools/base/data/etc/udhcpc.default.script | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'remote/tools/base/data') diff --git a/remote/tools/base/data/etc/udhcpc.default.script b/remote/tools/base/data/etc/udhcpc.default.script index 02ca9b05..fe98dcf7 100755 --- a/remote/tools/base/data/etc/udhcpc.default.script +++ b/remote/tools/base/data/etc/udhcpc.default.script @@ -12,6 +12,12 @@ set > /tmp/udhcpc_env case $1 in bound|renew) + [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + [ -n "$subnet" ] && NETMASK="netmask $subnet" + + ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface + ip route add default via $router + echo "ip=$ip" > $IP_CONF echo "subnet=$subnet" >> $IP_CONF echo "broadcast=$broadcast" >> $IP_CONF -- cgit v1.2.3-55-g7522