]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/juke
pc64: fix kmap() and invlpg()
[plan9front.git] / rc / bin / juke
old mode 100644 (file)
new mode 100755 (executable)
index f06961e..a661c7f
@@ -1,17 +1,14 @@
 #!/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) {
@@ -34,7 +31,7 @@ while(! ~ $#* 0) {
        }
        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
@@ -45,7 +42,7 @@ if (! test -e /mnt/playlist){
                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
        }