summaryrefslogtreecommitdiff
path: root/etc/rc.wscons
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-01 19:39:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-01 19:39:57 +0000
commit426184921d90279862f57d1136f60925fb679a9b (patch)
tree67490c4a56cfddc351cd845e8d63f1886047117c /etc/rc.wscons
parente3a05739c548ede574989fffe75becb825a0bf29 (diff)
wscons rc files are not nicely MI clean, so when some nice diffs are shown around, they can go back in
Diffstat (limited to 'etc/rc.wscons')
-rw-r--r--etc/rc.wscons117
1 files changed, 0 insertions, 117 deletions
diff --git a/etc/rc.wscons b/etc/rc.wscons
deleted file mode 100644
index 5d853441075..00000000000
--- a/etc/rc.wscons
+++ /dev/null
@@ -1,117 +0,0 @@
-# $OpenBSD: rc.wscons,v 1.2 2001/02/12 04:26:33 deraadt Exp $
-# $NetBSD: rc.wscons,v 1.3 1999/05/15 14:28:14 drochner Exp $
-
-wscfg=/usr/sbin/wsconscfg
-wsfld=/usr/sbin/wsfontload
-config=/etc/wscons.conf
-usage="Usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
-DOIT=
-
-while [ $# -gt 0 ]; do
- case $1 in
- -n)
- DOIT=echo
- ;;
- -f)
- config=$2
- shift
- ;;
- -font)
- wsfld=$2
- shift
- ;;
- -screen)
- wscfg=$2
- shift
- ;;
- *)
- echo $usage
- exit 1
- ;;
- esac
- shift
-done
-
-
-# args mean:
-# screen idx scr emul
-# font name width height enc file
-( while read type arg1 arg2 arg3 arg4 arg5; do
- case "$type" in
- \#*|"")
- continue
- ;;
- font)
- name=$arg1
- width=$arg2
- height=$arg3
- enc=$arg4
- file=$arg5
- cmd=$wsfld
-
- case $width in
- -)
- ;;
- *)
- cmd="$cmd -w $width"
- ;;
- esac
- case $height in
- -)
- ;;
- *)
- cmd="$cmd -h $height"
- ;;
- esac
- case $enc in
- -)
- ;;
- *)
- cmd="$cmd -e $enc"
- ;;
- esac
- cmd="$cmd -N $name $file"
- eval $DOIT $cmd
- ;;
- screen)
- idx=$arg1
- scr=$arg2
- emul=$arg3
- cmd=$wscfg
-
- case $scr in
- -)
- ;;
- *)
- cmd="$cmd -t $scr"
- ;;
- esac
- case $emul in
- -)
- ;;
- *)
- cmd="$cmd -e $emul"
- ;;
- esac
- cmd="$cmd $idx"
- eval $DOIT $cmd
- ;;
- keyboard)
- kbd=$arg1
- cmd=$wscfg
- case $kbd in
- -|auto)
- cmd="$cmd -k"
- ;;
- *)
- cmd="$cmd -k $kbd"
- ;;
- esac
- eval $DOIT $cmd
- ;;
- mux)
- cmd="$wscfg -m $arg1"
- eval $DOIT $cmd
- ;;
- esac
-done ) < $config