Add a script to automatically mount datasets.
This commit is contained in:
20
ansible/roles/base/files/bemount_rc.sh
Normal file
20
ansible/roles/base/files/bemount_rc.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# REQUIRE: FILESYSTEM kld
|
||||
# PROVIDE: bemount
|
||||
|
||||
. /etc/rc.subr
|
||||
name=bemount
|
||||
rcvar=${name}_enable
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
load_rc_config $name
|
||||
|
||||
bemount_start() {
|
||||
/usr/local/bin/bemount
|
||||
}
|
||||
|
||||
bemount_stop() {
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user