aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-23 17:19:43 +0000
committerRoy Marples <roy@marples.name>2007-04-23 17:19:43 +0000
commitc5ada996eef237db468a2dac28289c1f856d29ca (patch)
tree89ba187faf47bf77feda91075149dd8a3d368636
parent45325648294e97373cf295bf842ff1c542218865 (diff)
Fix udhcpc for releasing
-rw-r--r--net.Linux/udhcpc.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/net.Linux/udhcpc.sh b/net.Linux/udhcpc.sh
index 047ab727..af5bbea1 100644
--- a/net.Linux/udhcpc.sh
+++ b/net.Linux/udhcpc.sh
@@ -75,7 +75,7 @@ udhcpc_start() {
}
udhcpc_stop() {
- local pidfile="/var/run/udhcpc-${IFACE}.pid" opts= sig="TERM"
+ local pidfile="/var/run/udhcpc-${IFACE}.pid" opts=
[ ! -f "${pidfile}" ] && return 0
# Get our options
@@ -85,15 +85,15 @@ udhcpc_stop() {
ebegin "Stopping udhcpc on ${IFACE}"
case " ${opts} " in
*" release "*)
- sig="USR2"
+ start-stop-daemon --stop --quiet --oknodo --signal USR2 \
+ --exec /sbin/udhcpc --pidfile "${pidfile}"
if [ -f /var/cache/udhcpc-"${IFACE}".lease ] ; then
rm -f /var/cache/udhcpc-"${IFACE}".lease
fi
;;
esac
- start-stop-daemon --stop --quiet --signal "${sig}" \
- --exec /sbin/udhcpc --pidfile "${pidfile}"
+ start-stop-daemon --stop --exec /sbin/udhcpc --pidfile "${pidfile}"
eend $?
}