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
This commit is contained in:
parent
0b09a89340
commit
ef5f836207
7 changed files with 13 additions and 16 deletions
|
@ -6,9 +6,8 @@ START=50
|
|||
STOP=50
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
NAME=dropbear
|
||||
PROG=/usr/sbin/dropbear
|
||||
NAME=dropbear
|
||||
PIDCOUNT=0
|
||||
EXTRA_COMMANDS="killclients"
|
||||
EXTRA_HELP=" killclients Kill ${NAME} processes except servers and yourself"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (c) 2011-2012 OpenWrt.org
|
||||
|
||||
START=80
|
||||
|
||||
USE_PROCD=1
|
||||
|
|
|
@ -6,7 +6,6 @@ START=21
|
|||
STOP=89
|
||||
|
||||
USE_PROCD=1
|
||||
NAME=logread
|
||||
PROG=/sbin/logread
|
||||
|
||||
start_service_file()
|
||||
|
|
|
@ -5,7 +5,6 @@ START=50
|
|||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/crond
|
||||
NAME=crond
|
||||
|
||||
start_service () {
|
||||
[ -z "$(ls /etc/crontabs/)" ] && return 1
|
||||
|
|
|
@ -5,7 +5,6 @@ START=98
|
|||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/ntpd
|
||||
SERVICE_PID_FILE=/var/run/sysntpd.pid
|
||||
|
||||
start_service() {
|
||||
local peers
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue