summaryrefslogtreecommitdiff
path: root/devel/dcons/files/dcons.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devel/dcons/files/dcons.sh')
-rw-r--r--devel/dcons/files/dcons.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/devel/dcons/files/dcons.sh b/devel/dcons/files/dcons.sh
deleted file mode 100644
index 602934c1384e..000000000000
--- a/devel/dcons/files/dcons.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${0##*/}\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 64
-fi
-
-if [ -r /etc/defaults/rc.conf ]; then
- . /etc/defaults/rc.conf
- source_rc_confs
-elif [ -r /etc/rc.conf ]; then
- . /etc/rc.conf
-fi
-
-case "$1" in
-start)
- case ${dcons_enable:-NO} in
- [Yy][Ee][Ss])
- /sbin/kldload ${PREFIX}/lib/dcons/dcons.ko && echo -n ' dcons'
- /sbin/kldload ${PREFIX}/lib/dcons/dcons_crom.ko && echo -n ' dcons_crom'
- /usr/sbin/fwcontrol -r
- ;;
- esac
- ;;
-stop)
- case ${dcons_enable:-NO} in
- [Yy][Ee][Ss])
- /sbin/kldunload dcons & echo -n ' dcons'
- /sbin/kldunload dcons_crom & echo -n ' dcons_crom'
- ;;
- esac
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- ;;
-esac
-
-exit 0