source: MondoRescue/branches/2.2.9/mindi-busybox/examples/var_service/dhcp_if/run@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 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
Line 
1#!/bin/sh
2
3exec 2>&1
4exec </dev/null
5
6pwd="$PWD"
7
8if="${PWD##*/dhcp_}"
9
10echo "* Upping iface $if"
11ip link set dev "$if" up
12
13echo "* Starting udhcpc"
14exec \
15env - PATH="$PATH" \
16softlimit \
17setuidgid root \
18udhcpc -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.