diff options
author | John Crispin <john@phrozen.org> | 2016-06-12 03:10:28 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-06-13 22:51:43 +0200 |
commit | fd7e15d493166eeed15153caa864a9cc59e3a51a (patch) | |
tree | 1ef49696dfa15944dcbc4f759a9c04f9c1f25746 /package | |
parent | 4260d11e8b47a8a7aac0927abe2c9e89931b4467 (diff) | |
download | upstream-fd7e15d493166eeed15153caa864a9cc59e3a51a.tar.gz upstream-fd7e15d493166eeed15153caa864a9cc59e3a51a.tar.bz2 upstream-fd7e15d493166eeed15153caa864a9cc59e3a51a.zip |
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')
-rw-r--r-- | package/system/fstools/files/fstab.init | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package/system/fstools/files/fstab.init b/package/system/fstools/files/fstab.init index f995e96544..5faa8ecbb9 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 } |