aboutsummaryrefslogtreecommitdiff
path: root/examples/var_service/dhcp_if/dhcp_handler
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-03 17:02:50 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-03 17:02:50 +0200
commitaa75a7da7f3b0bb50be82f535244137bae423fa8 (patch)
tree781df3664a0f5b29cb4a8b715c28ac75b4c1584c /examples/var_service/dhcp_if/dhcp_handler
parente5d5f5b9a770de5a48d1a3bd293d5d611d6624c4 (diff)
downloadbusybox-aa75a7da7f3b0bb50be82f535244137bae423fa8.tar.gz
examples/var_service/: use "svc" for service commands, other tweaks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/var_service/dhcp_if/dhcp_handler')
-rwxr-xr-xexamples/var_service/dhcp_if/dhcp_handler10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/var_service/dhcp_if/dhcp_handler b/examples/var_service/dhcp_if/dhcp_handler
index 3d44a6022..6a97e8543 100755
--- a/examples/var_service/dhcp_if/dhcp_handler
+++ b/examples/var_service/dhcp_if/dhcp_handler
@@ -52,7 +52,7 @@ if test x"$1" != x"bound" && test x"$1" != x"renew" ; then
rm "$file_ntpconf"
rm "$dir_ipconf/$file_ipconf"
rm "$dir_ntpconf/$file_ntpconf"
- sv u /var/service/fw
+ svc -u fw
exit
fi
@@ -67,10 +67,10 @@ if test $? != 0; then
echo "Reconfiguring fw"
mkdir -p "$dir_ipconf" 2>/dev/null
cp "$file_ipconf" "$dir_ipconf/$file_ipconf"
- sv u /var/service/fw
+ svc -u fw
fi
-if test -d /var/service/ntpd; then
+if test -d ../ntpd; then
./convert2ntpconf "$file_ntpconf"
# Reconfigure ntp server addresses if needed
diff --brief "$file_ntpconf" "$dir_ntpconf/$file_ntpconf" >/dev/null 2>&1
@@ -78,7 +78,7 @@ if test -d /var/service/ntpd; then
echo "Reconfiguring ntp"
mkdir -p "$dir_ntpconf" 2>/dev/null
cp "$file_ntpconf" "$dir_ntpconf/$file_ntpconf"
- sv t /var/service/ntpd
- sv u /var/service/ntpd
+ svc -t ntpd
+ svc -u ntpd
fi
fi