diff options
author | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-23 21:58:36 +0000 |
---|---|---|
committer | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-23 21:58:36 +0000 |
commit | a439b6bbbea3c1d4eb64c5f3b9d11846231314f4 (patch) | |
tree | e2d95e46c7f0ddee32863620a67ce304b751c1eb /package/utils/busybox/files | |
parent | 1f6ec37044644328371347aeff398a203f42a4a0 (diff) |
[package] fix various init scripts
Changes include:
* removing unused variables
* replacing spaces with tabs where appropriate
* more consistency with variable declarations
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38142 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/busybox/files')
-rwxr-xr-x | package/utils/busybox/files/cron | 1 | ||||
-rwxr-xr-x | package/utils/busybox/files/sysntpd | 3 | ||||
-rwxr-xr-x | package/utils/busybox/files/telnet | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/package/utils/busybox/files/cron b/package/utils/busybox/files/cron index fa368098c2..5e6b4bf3fe 100755 --- a/package/utils/busybox/files/cron +++ b/package/utils/busybox/files/cron @@ -5,7 +5,6 @@ START=50 USE_PROCD=1 PROG=/usr/sbin/crond -NAME=crond start_service () { [ -z "$(ls /etc/crontabs/)" ] && return 1 diff --git a/package/utils/busybox/files/sysntpd b/package/utils/busybox/files/sysntpd index d7a9807a87..ebdda63df9 100755 --- a/package/utils/busybox/files/sysntpd +++ b/package/utils/busybox/files/sysntpd @@ -5,7 +5,6 @@ START=98 USE_PROCD=1 PROG=/usr/sbin/ntpd -SERVICE_PID_FILE=/var/run/sysntpd.pid start_service() { local peers @@ -20,7 +19,7 @@ start_service() { procd_open_instance procd_set_param command "$PROG" -n - [ $enable_server -ne 0 ] && procd_append_param command -l + [ $enable_server -ne 0 ] && procd_append_param command -l [ -n "$peers" ] && { local peer for peer in $peers; do diff --git a/package/utils/busybox/files/telnet b/package/utils/busybox/files/telnet index 8ffd904078..a1d1cdf9b1 100755 --- a/package/utils/busybox/files/telnet +++ b/package/utils/busybox/files/telnet @@ -2,9 +2,9 @@ # Copyright (C) 2006-2011 OpenWrt.org START=50 + USE_PROCD=1 PROG=/usr/sbin/telnetd -NAME=telnetd has_root_pwd() { local pwd=$([ -f "$1" ] && cat "$1") @@ -31,8 +31,8 @@ start_service() { ! has_root_pwd /etc/passwd && ! has_root_pwd /etc/shadow ) || \ ( ! /etc/init.d/dropbear enabled 2> /dev/null && ! /etc/init.d/sshd enabled 2> /dev/null ); then - procd_open_instance - procd_set_param command "$PROG" -F -l /bin/login.sh + procd_open_instance + procd_set_param command "$PROG" -F -l /bin/login.sh procd_close_instance fi } |