summaryrefslogtreecommitdiff
path: root/package/system/fstools
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-06-12 03:10:28 +0200
committerJohn Crispin <john@phrozen.org>2016-06-13 22:51:43 +0200
commitfd7e15d493166eeed15153caa864a9cc59e3a51a (patch)
tree1ef49696dfa15944dcbc4f759a9c04f9c1f25746 /package/system/fstools
parent4260d11e8b47a8a7aac0927abe2c9e89931b4467 (diff)
downloadmtk-20170518-fd7e15d493166eeed15153caa864a9cc59e3a51a.zip
mtk-20170518-fd7e15d493166eeed15153caa864a9cc59e3a51a.tar.gz
mtk-20170518-fd7e15d493166eeed15153caa864a9cc59e3a51a.tar.bz2
fstools: remove bogus warning in the fstab script
/etc/init.d/fstab had some warnings in it to let users know that they should call "block mount" directly. these ended up in the bootlog. fix this by splitting the code into boot() and start(). this way the system will boot without warning but manually starting the script will lead to the message. fixes FS#3 Reported-by: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system/fstools')
-rw-r--r--package/system/fstools/files/fstab.init10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/system/fstools/files/fstab.init b/package/system/fstools/files/fstab.init
index f995e96..5faa8ec 100644
--- a/package/system/fstools/files/fstab.init
+++ b/package/system/fstools/files/fstab.init
@@ -3,12 +3,14 @@
START=40
-start() {
- echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
+boot() {
/sbin/block mount
}
-stop() {
- echo "this file has been obsoleted. please call \"/sbin/block umount\" directly"
+start() {
+ echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
+}
+
+stop() {
/sbin/block umount
}