Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/r

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# set tag or launch rio
# copy this file to $home/bin/rc and modify to suit
. /$cputype/mkfile
switch($1){
case -8
	riocmd=($home/src/retro/rio/$O.out)
	bind /bin/faces.mono /bin/faces
	bind /bin/mothra.mono /bin/mothra
	#bind $home/src/retro/samterm/$O.out /bin/aux/samterm
	bind $home/src/stats.mono/$O.out /bin/stats
	bind $home/src/statusmsg.mono/$O.out /bin/aux/statusmsg
	bind $home/src/winwatch.mono/$O.out /bin/winwatch
case -b
	riocmd=(rio -b)
case -c
	riocmd=(rio.c64)
	bind /bin/faces.c64 /bin/faces
	bind /bin/mothra.mono /bin/mothra
	bind $home/src/stats.mono/$O.out /bin/stats
	bind $home/src/statusmsg.mono/$O.out /bin/aux/statusmsg
	bind $home/src/winwatch.mono/$O.out /bin/winwatch
case -d
	echo desktopmask $2 >>/dev/wctl
case -f
	riocmd=(rio.fm -b)
	bind /bin/faces.b /bin/faces
	bind /bin/mothra.mono /bin/mothra
	bind $home/src/stats.tron/$O.out /bin/stats
	bind $home/src/statusmsg.tron/$O.out /bin/aux/statusmsg
case -g
	riocmd=(rio.green -b)
	bind /bin/faces.green /bin/faces
	bind /bin/mothra.mono /bin/mothra
	bind $home/src/stats.green/$O.out /bin/stats
	bind $home/src/statusmsg.green/$O.out /bin/aux/statusmsg
case -m
	riocmd=(rio.mono -b)
	bind /bin/faces.b /bin/faces
	bind /bin/mothra.mono /bin/mothra
	bind $home/src/stats.mono/$O.out /bin/stats
	bind $home/src/statusmsg.mono/$O.out /bin/aux/statusmsg
	bind $home/src/winwatch.mono/$O.out /bin/winwatch
case -p
	riocmd=(rio.p -b)
	bind /bin/faces.b /bin/faces
	bind /bin/mothra.mono /bin/mothra
	bind $home/src/stats.mono/$O.out /bin/stats
	bind $home/src/statusmsg.mono/$O.out /bin/aux/statusmsg
	bind $home/src/winwatch.mono/$O.out /bin/winwatch
case -t
	riocmd=(rio.tron -b)
	bind /bin/faces.b /bin/faces
	bind /bin/mothra.p /bin/mothra
	bind $home/src/stats.tron/$O.out /bin/stats
	bind $home/src/statusmsg.tron/$O.out /bin/aux/statusmsg
	bind $home/src/winwatch.tron/$O.out /bin/winwatch
case *
	bind /bin/faces.orig /bin/faces
	bind /bin/mothra.p /bin/mothra
	riocmd=rio
}
exec $riocmd -i $home/lib/riostart

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].