You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
genkernel_fork/generic/udhcpc.scripts

18 lines
396 B

#!/bin/sh
case ${1} in
bound)
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
[ -n "$rootpath" ] && echo "$rootpath" > /rootpath
#[ -n "$router" ] && echo "$router" > /router
#[ -n "$dns" ] && echo "$dns" > /dns
busybox ifconfig $interface $ip $BROADCAST $NETMASK
;;
deconfig)
busybox ifconfig $interface 0.0.0.0
;;
esac