Last change
on this file since 3553 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
331 bytes
|
Rev | Line | |
---|
[3320] | 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"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.