mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[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
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user