projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e4ddd
)
Fix init script (#3057)
author
Florian Fainelli
<florian@openwrt.org>
Sat, 23 Feb 2008 17:18:04 +0000
(17:18 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sat, 23 Feb 2008 17:18:04 +0000
(17:18 +0000)
SVN-Revision: 10520
net/dhcp/files/dhcpd.init
patch
|
blob
|
history
diff --git
a/net/dhcp/files/dhcpd.init
b/net/dhcp/files/dhcpd.init
index 15159bb8e3a8ee332fae91d5c0bada204af4c2d0..ea16f01be57f6792eceb84675f8c1de762a46503 100644
(file)
--- a/
net/dhcp/files/dhcpd.init
+++ b/
net/dhcp/files/dhcpd.init
@@
-15,7
+15,7
@@
start() {
/usr/sbin/dhcpd -q -cf $config_file -lf $lease_file
- if [ $
$
-eq 0 ]; then
+ if [ $
?
-eq 0 ]; then
echo " isc-dhcpd failed to start"
fi
}
@@
-25,7
+25,7
@@
stop() {
if [ -e $pid_file ]; then
kill `cat $pid_file`
- if [ $
$
-eq 0 ]; then
+ if [ $
?
-eq 0 ]; then
echo " PID " `cat $pid_file` not found
echo " Is the DHCP server running?"
fi