#!/bin/rc
-
+rfork e
wide=`{echo $vgasize | sed 's/(.*)x.*x.*/\1 > 240/' | hoc}
-
debug=0
tflag=''
wflag=''
host=''
-kb=4096
flags=()
sname=$user
if (! ~ $wide 1) {
flags=($flags -t)
- kb=1024
}
while(! ~ $#* 0) {
switch ($1) {
sname=$2
shift
case -*
- echo Usage: classical [-d level] [-t] [-h srvhost]
+ echo usage: juke [-d level] [-tw] [-s srv] [-h srvhost] >[1=2]
exit usage
}
shift
}
-if (! test -e /mnt/playlist){
+if (! test -f /mnt/playlist) {
if (! ~ $debug '0') echo mounting playlistfs
if (! test -e /srv/playlist.$sname && ! ~ $host ''){
import -a $host /srv /srv
games/playlistfs -s $sname -d $debug
}
}
-if (! test -w /mnt/juke) {
+if (~ `{ls /mnt/juke >[2]/dev/null | sed '1q'} '') {
if (! test -e /srv/jukefs.$sname && ! ~ $host ''){
import -a $host /srv /srv
}