[OpenWrt-Devel] [PATCH] Remove stale calls to start() in initscripts.

Yousong Zhou yszhou4tech at gmail.com
Wed Jul 23 23:13:48 EDT 2014


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 package/base-files/files/etc/init.d/boot            |    2 --
 package/network/config/firewall/files/firewall.init |    7 -------
 2 files changed, 9 deletions(-)

diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index d210fdc..b1272f4 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -51,8 +51,6 @@ boot() {
 	# temporary hack until configd exists
 	/sbin/reload_config
 
-	start
-
 	# create /dev/root if it doesn't exist
 	[ -e /dev/root -o -h /dev/root ] || {
 		rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
diff --git a/package/network/config/firewall/files/firewall.init b/package/network/config/firewall/files/firewall.init
index 1147b83..7874709 100755
--- a/package/network/config/firewall/files/firewall.init
+++ b/package/network/config/firewall/files/firewall.init
@@ -56,10 +56,3 @@ stop_service() {
 reload_service() {
 	fw3 reload
 }
-
-boot() {
-	# Be silent on boot, firewall might be started by hotplug already,
-	# so don't complain in syslog.
-	QUIET=1
-	start
-}
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list