summaryrefslogtreecommitdiff
path: root/package/base-files
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
commit541725ce1897acbd543d1e82e2b1b2728a8f6856 (patch)
tree6aef4533e902f7f3dfc24d3726ee686d95bd28cf /package/base-files
parentd46a32fa607aaf688327f69830b4ebf02df07223 (diff)
downloadmtk-20170518-541725ce1897acbd543d1e82e2b1b2728a8f6856.zip
mtk-20170518-541725ce1897acbd543d1e82e2b1b2728a8f6856.tar.gz
mtk-20170518-541725ce1897acbd543d1e82e2b1b2728a8f6856.tar.bz2
stop syslogd before rebooting, otherwise umount might not work properly when logging to a file (thx, puchu)
SVN-Revision: 19428
Diffstat (limited to 'package/base-files')
-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 2ed4c50..7927af1 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
+}
+