Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/root/cfg.home/evo/termrc

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


#!/bin/rc
rfork e
echo -n evo...
fn ipq {			# attr val rattr
	ndb/ipquery $* | sed 's/^[a-z0-9]+=//'
}

myeth=`{cat /net/ether?/addr}
mev4=`{ndb/query -f /lib/ndb/local ether $myeth ip}
if (~ $#mev4 0 || ~ $mev4 '')
	mev4=`{ndb/query sys $sysname ip}
if (~ $#mev4 0 || ~ $mev4 '')
	status='' # ip/ipconfig
if not {
	ip=`{ipq sys $sysname ip}
	ipnet=`{ipq sys $sysname ipnet}
	ipmask=`{ipq ipnet $ipnet ipmask}
	ipgw=`{ipq ipnet $ipnet ipgw}
	ip/ipconfig -g $ipgw $ip $ipmask
}
TIMESYNCARGS=(-nla1000000)

dmaon
aux/timesync -rL
@{sleep 5; . <{kill timesync}; aux/timesync $TIMESYNCARGS} &
echo 55 > /dev/volume

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.