summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorglenda <glenda@cirno.localdomain>2015-08-25 09:35:10 +0000
committerglenda <glenda@cirno.localdomain>2015-08-25 09:35:10 +0000
commitc4fdc6bfdb2211e13643d5fba75edf437c122eef (patch)
treed5991bc7350d3058cfcefe06dfa43814e62df919 /rc
parent6b402b83cffc97015345dab1c27c35afe64bb3db (diff)
fix fuckup
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/9fs6
-rwxr-xr-xrc/bin/E16
-rwxr-xr-xrc/bin/ape/egrep2
-rwxr-xr-xrc/bin/ape/fgrep2
-rwxr-xr-xrc/bin/ape/ln2
-rwxr-xr-xrc/bin/cpurc9
-rwxr-xr-xrc/bin/service/tcp170105
-rwxr-xr-xrc/bin/sysupdate2
8 files changed, 8 insertions, 36 deletions
diff --git a/rc/bin/9fs b/rc/bin/9fs
index 1a06cab85..578120680 100755
--- a/rc/bin/9fs
+++ b/rc/bin/9fs
@@ -71,12 +71,6 @@ case *.vac
vacfs -m /n/`{basename $1 .vac} `{cat $score}
case wiki
srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki
-case ingenic
- ftpfs -qKm /n/ingenic -a $user@$sysname ftp.ingenic.com
-case kernel
- ftpfs -qKm /n/kernel -a $user@sysname ftp.kernel.org
-case qrstuv
- srv -nqmC tcp!fs.9paste.net qrstuv
case *
switch($#*){
case 1
diff --git a/rc/bin/E b/rc/bin/E
deleted file mode 100755
index e91d4f6a2..000000000
--- a/rc/bin/E
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/rc
-# E file - B file, wait until it changes, exit
-rfork e
-if (! ~ $#* 1) {
- echo usage: $0 file >[1=2]
- exit usage
-}
-if (! test -e $1) {
- echo $0: $1: no such file >[1=2]
- exit no-file
-}
-otm = `{mtime $1 | awk '{print $1}'}
-B $1
-while (~ $otm `{mtime $1 | awk '{print $1}'})
- sleep 1
-exit ''
diff --git a/rc/bin/ape/egrep b/rc/bin/ape/egrep
index 4a445c35e..ffd1b2dc3 100755
--- a/rc/bin/ape/egrep
+++ b/rc/bin/ape/egrep
@@ -1,2 +1,2 @@
#!/bin/rc
-exec /$objtype/bin/ape/grep -E $*
+exec /rc/bin/ape/grep $*
diff --git a/rc/bin/ape/fgrep b/rc/bin/ape/fgrep
index 99853d168..ffd1b2dc3 100755
--- a/rc/bin/ape/fgrep
+++ b/rc/bin/ape/fgrep
@@ -1,2 +1,2 @@
#!/bin/rc
-exec /$objtype/bin/ape/grep -F $*
+exec /rc/bin/ape/grep $*
diff --git a/rc/bin/ape/ln b/rc/bin/ape/ln
index d48d0326a..bb5da4a44 100755
--- a/rc/bin/ape/ln
+++ b/rc/bin/ape/ln
@@ -20,4 +20,4 @@ if(~ $force n && test -e $2){
exit 'usage'
}
-exec cp -R $1 $2
+exec cp -gux $1 $2
diff --git a/rc/bin/cpurc b/rc/bin/cpurc
index af3adc10c..d20cf07e1 100755
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -55,22 +55,18 @@ if(test -r /net/ipselftab){
}
}
-if(! test -e /net/dns){
- echo dns...
+if(! test -e /net/dns)
ndb/dns -r
-}
-echo timesync...
if(! ps|grep -s timesync){
if(~ $#ntp 0)
. <{ndb/ipquery sys $sysname ntp | sed 's, +,\n,g'}
if(~ $#ntp 0)
ntp=pool.ntp.org
- #aux/timesync -n $ntp
+ aux/timesync -n $ntp
sleep 2
}
-echo listen...
if(~ $#auth 0){
auth=`{ndb/query sys $sysname auth}
. <{ndb/ipquery sys $sysname auth | sed 's, +,\n,g'}
@@ -93,7 +89,6 @@ case *
if(test -f /dev/apm)
aux/apm
-echo cpustart...
if(test -e /cfg/$sysname/cpustart)
. /cfg/$sysname/cpustart
diff --git a/rc/bin/service/tcp17010 b/rc/bin/service/tcp17010
index f25b7aa23..8747639f1 100755
--- a/rc/bin/service/tcp17010
+++ b/rc/bin/service/tcp17010
@@ -1,4 +1,3 @@
#!/bin/rc
-#netdir=`{echo $3 | sed 's;/[0-9]+$;!*!0;'}
-#exec /bin/cpu -A $netdir -R
-exec /bin/cpu -R
+netdir=`{echo $3 | sed 's;/[0-9]+$;!*!0;'}
+exec /bin/cpu -A $netdir -R
diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate
index de08d28a2..e0420b50f 100755
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -1,6 +1,6 @@
#!/bin/rc
rfork en
-
+source=https://code.9front.org/hg/plan9front
cd /
if(! test -d .hg)
bind -ac /dist/plan9front /