Last change
on this file since 2140 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
-
Property svn:executable
set to
*
|
File size:
619 bytes
|
Rev | Line | |
---|
[821] | 1 | #!/bin/sh
|
---|
| 2 | # Sample udhcpc renew script
|
---|
| 3 |
|
---|
| 4 | RESOLV_CONF="/etc/udhcpc/resolv.conf"
|
---|
| 5 |
|
---|
| 6 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
|
---|
| 7 | [ -n "$subnet" ] && NETMASK="netmask $subnet"
|
---|
| 8 |
|
---|
| 9 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
---|
| 10 |
|
---|
| 11 | if [ -n "$router" ]
|
---|
| 12 | then
|
---|
| 13 | echo "deleting routers"
|
---|
| 14 | while /sbin/route del default gw 0.0.0.0 dev $interface
|
---|
| 15 | do :
|
---|
| 16 | done
|
---|
| 17 |
|
---|
| 18 | metric=0
|
---|
| 19 | for i in $router
|
---|
| 20 | do
|
---|
| 21 | /sbin/route add default gw $i dev $interface metric $((metric++))
|
---|
| 22 | done
|
---|
| 23 | fi
|
---|
| 24 |
|
---|
| 25 | echo -n > $RESOLV_CONF
|
---|
| 26 | [ -n "$domain" ] && echo domain $domain >> $RESOLV_CONF
|
---|
| 27 | for i in $dns
|
---|
| 28 | do
|
---|
| 29 | echo adding dns $i
|
---|
| 30 | echo nameserver $i >> $RESOLV_CONF
|
---|
| 31 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.