1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/ash . /etc/rc.subr start() { echo -n " * Mounting local filesystems: " if ${mount_program} -a; then echo "Ok" else echo "Failed" fi } stop() { echo -n " * Unmounting local filesystems: " if ${umount_program} -a 2>/dev/null; then echo "Ok" else echo "Failed" fi } rc_run_command "$1"