Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/etc/rc.d/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/etc/rc.d/addswap |
#!/bin/sh # # Add additional swap files # # $FreeBSD: release/9.1.0/etc/rc.d/addswap 231664 2012-02-14 10:33:57Z dougb $ # # PROVIDE: addswap # REQUIRE: FILESYSTEMS kld # KEYWORD: nojail . /etc/rc.subr name="addswap" start_cmd="addswap_start" stop_cmd=":" addswap_start() { case ${swapfile} in [Nn][Oo] | '') ;; *) if [ -w "${swapfile}" ]; then echo "Adding ${swapfile} as additional swap" mdev=`mdconfig -a -t vnode -f ${swapfile}` && swapon /dev/${mdev} fi ;; esac } load_rc_config $name run_rc_command "$1"