Contents of /trunk/mkinitrd-magellan/busybox/examples/var_service/dhcp_if/run
Parent Directory | Revision Log
Revision 984 -
(show annotations)
(download)
Sun May 30 11:32:42 2010 UTC (13 years, 11 months ago) by niro
File size: 331 byte(s)
Sun May 30 11:32:42 2010 UTC (13 years, 11 months ago) by niro
File size: 331 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 | #!/bin/sh |
2 | |
3 | exec 2>&1 |
4 | exec </dev/null |
5 | |
6 | pwd="$PWD" |
7 | |
8 | if="${PWD##*/dhcp_}" |
9 | |
10 | echo "* Upping iface $if" |
11 | ip link set dev "$if" up |
12 | |
13 | echo "* Starting udhcpc" |
14 | exec \ |
15 | env - PATH="$PATH" \ |
16 | softlimit \ |
17 | setuidgid root \ |
18 | udhcpc -vv \ |
19 | --hostname=null \ |
20 | --foreground \ |
21 | --interface="$if" \ |
22 | --pidfile="$pwd/udhcpc.pid" \ |
23 | --script="$pwd/dhcp_handler" |
Properties
Name | Value |
---|---|
svn:executable | * |