mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
fd7e15d493
/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>
17 lines
215 B
Bash
17 lines
215 B
Bash
#!/bin/sh /etc/rc.common
|
|
# (C) 2013 openwrt.org
|
|
|
|
START=40
|
|
|
|
boot() {
|
|
/sbin/block mount
|
|
}
|
|
|
|
start() {
|
|
echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
|
|
}
|
|
|
|
stop() {
|
|
/sbin/block umount
|
|
}
|