diff options
author | Luka Perkov <luka@openwrt.org> | 2013-09-23 21:58:36 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-09-23 21:58:36 +0000 |
commit | ef5f83620738c07f4e67042c80578882418aaf0c (patch) | |
tree | dfd6d01e5e58de422307acb593d86368db9b2da6 /package/utils/busybox/files/telnet | |
parent | 0b09a893406c33777b4cf552dc2f72730069f71d (diff) | |
download | master-31e0f0ae-ef5f83620738c07f4e67042c80578882418aaf0c.tar.gz master-31e0f0ae-ef5f83620738c07f4e67042c80578882418aaf0c.tar.bz2 master-31e0f0ae-ef5f83620738c07f4e67042c80578882418aaf0c.zip |
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>
SVN-Revision: 38142
Diffstat (limited to 'package/utils/busybox/files/telnet')
-rwxr-xr-x | package/utils/busybox/files/telnet | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |