#!/bin/rc rfork n cd / incoming=1 switch($1){ case -h echo usage: sysupdate [-i] >[1=2] exit usage case -i incoming=0 } rfork n cd / if(! test -d .hg) bind -ac /dist/plan9front / if(~ $incoming 1) hg incoming hg -v pull -u