1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/bin/sh # PROVIDE: ptx # REQUIRE: LOGIN abi # KEYWORD: nojail . /etc/rc.subr name="ptx" rcvar=ptx_enable start_cmd="ptx_start" stop_cmd="ptx_stop" ptx_start() { load_kld %%KMODDIR%%/ptx.ko } ptx_stop() { /sbin/kldunload ptx } : ${ptx_enable="YES"} load_rc_config $name run_rc_command "$1"