summaryrefslogtreecommitdiff
path: root/usr/glenda/bin
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-04-11 19:47:05 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-04-11 19:47:05 +0000
commit45bab89362ebe122d60d5e9b1e2b949b26168db3 (patch)
treec430eb677a06d8c823fd1d2d4a9f7790c0c275d2 /usr/glenda/bin
parent05569f6f2c54a19c1c85a7f10742913cd8904787 (diff)
downloadplan9front-45bab89362ebe122d60d5e9b1e2b949b26168db3.tar.xz
livecd
Diffstat (limited to 'usr/glenda/bin')
-rwxr-xr-xusr/glenda/bin/rc/pull17
-rwxr-xr-xusr/glenda/bin/rc/riostart17
-rwxr-xr-xusr/glenda/bin/rc/screensize9
3 files changed, 43 insertions, 0 deletions
diff --git a/usr/glenda/bin/rc/pull b/usr/glenda/bin/rc/pull
new file mode 100755
index 000000000..42b5ecc27
--- /dev/null
+++ b/usr/glenda/bin/rc/pull
@@ -0,0 +1,17 @@
+#!/bin/rc
+
+rfork e
+flags=()
+while(! ~ $#* 0 && ~ $1 -*){
+ if(~ $1 -c -s){
+ flags=($flags $1)
+ shift
+ }
+ flags=($flags $1)
+ shift
+}
+if(test -f /srv/kfs.cmd)
+ disk/kfscmd allow
+replica/pull -v $flags /dist/replica/network $*
+if(test -f /srv/kfs.cmd)
+ disk/kfscmd disallow
diff --git a/usr/glenda/bin/rc/riostart b/usr/glenda/bin/rc/riostart
new file mode 100755
index 000000000..c8515d08e
--- /dev/null
+++ b/usr/glenda/bin/rc/riostart
@@ -0,0 +1,17 @@
+#!/bin/rc
+
+scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
+wid=$scr(11)
+ht=$scr(12)
+
+window 0,0,161,117 stats -lmisce
+window 161,0,560,117 faces -i
+
+if(~ `{screensize} small)
+ dump=acme.dump.small
+if not
+ dump=acme.dump
+
+a=`{echo $wid-35 | hoc }
+window 60,90,$a,$ht acme -l lib/$dump
+window 20,140,610,450 /usr/glenda/lib/first.window
diff --git a/usr/glenda/bin/rc/screensize b/usr/glenda/bin/rc/screensize
new file mode 100755
index 000000000..e38ed4d47
--- /dev/null
+++ b/usr/glenda/bin/rc/screensize
@@ -0,0 +1,9 @@
+#!/bin/rc
+
+scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
+wid=$scr(11)
+ht=$scr(12)
+if(test $wid -le 1024)
+ echo small
+if not
+ echo normal