From fd7e15d493166eeed15153caa864a9cc59e3a51a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 12 Jun 2016 03:10:28 +0200 Subject: 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 Signed-off-by: John Crispin --- package/system/fstools/files/fstab.init | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'package/system') 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 } -- cgit v1.1