aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-30 18:17:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-30 18:17:52 +0000
commite2dc50944888922730860f7cd43e5f06a652caf6 (patch)
treeed7f79a7b9da9a12b3bc41797efbee76eb0af030 /package
parent3f0f74fec5a8b82622b0a2501a9aead0d2521cbd (diff)
downloadupstream-e2dc50944888922730860f7cd43e5f06a652caf6.tar.gz
upstream-e2dc50944888922730860f7cd43e5f06a652caf6.tar.bz2
upstream-e2dc50944888922730860f7cd43e5f06a652caf6.zip
stop syslogd before rebooting, otherwise umount might not work properly when logging to a file (thx, puchu)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19428 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 2ed4c50613..7927af1543 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -2,6 +2,7 @@
# Copyright (C) 2006 OpenWrt.org
START=10
+STOP=98
system_config() {
local cfg="$1"
@@ -80,3 +81,8 @@ start() {
load_modules /etc/modules.d/*
}
+
+stop() {
+ killall -9 syslogd 2> /dev/null
+}
+