summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-08-05 21:23:08 +0000
committerpjd <pjd@FreeBSD.org>2005-08-05 21:23:08 +0000
commit0b10714f0fa7894dee283f7086b8ea2a68874f43 (patch)
tree64d87e5cc7760ff8d9e047916dad724c4edc7d27 /etc
parent0d974f75a85f7d04a9db769860fa0784eb98974c (diff)
downloadFreeBSD-src-0b10714f0fa7894dee283f7086b8ea2a68874f43.zip
FreeBSD-src-0b10714f0fa7894dee283f7086b8ea2a68874f43.tar.gz
gbde_swap has been repo-copied to encswap.
Repo-copy made by: markm
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/Makefile4
-rw-r--r--etc/rc.d/gbde_swap55
2 files changed, 2 insertions, 57 deletions
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index b76df95..ed17c05 100755
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -8,9 +8,9 @@ FILES= DAEMON LOGIN NETWORKING SERVERS \
ccd cleanvar cleartmp cron \
devd devfs dhclient \
dmesg dumpon \
- early.sh \
+ early.sh encswap \
fsck \
- gbde gbde_swap \
+ gbde \
hostname \
ike \
inetd initrandom \
diff --git a/etc/rc.d/gbde_swap b/etc/rc.d/gbde_swap
deleted file mode 100644
index 82ac8da..0000000
--- a/etc/rc.d/gbde_swap
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: disks
-# REQUIRE: initrandom
-# KEYWORD: nojail
-
-. /etc/rc.subr
-
-name="gbde_swap"
-start_cmd="gbde_swap_attach"
-stop_cmd="gbde_swap_detach"
-
-gbde_swap_attach()
-{
- while read device mountpoint type options rest ; do
- case ":${device}:${type}:${options}" in
- :#*)
- continue
- ;;
- *.bde:swap:sw)
- ;;
- *)
- continue
- ;;
- esac
- passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
- device="${device%.bde}"
- gbde init "${device}" -P "${passphrase}" || return 1
- gbde attach "${device}" -p "${passphrase}" || return 1
- done < /etc/fstab
-}
-
-gbde_swap_detach()
-{
- while read device mountpoint type options rest ; do
- case ":${device}:${type}:${options}" in
- :#*)
- continue
- ;;
- *.bde:swap:sw)
- ;;
- *)
- continue
- ;;
- esac
- device="${device%.bde}"
- gbde detach "${device}"
- done < /etc/fstab
-}
-
-load_rc_config $name
-run_rc_command "$1"
OpenPOWER on IntegriCloud