22 lines · 510 B · Text
RawDownload
#!/bin/rc# retrieve devices to re-attach to window system# getdevs [name] if(~ $1 ''){	echo need a srvname with saved devices	exit no.srvname}if(! test -e /srv/oldterm.$1){	echo no devices saved at /srv/oldterm.$1	exit no.devices} mount -c /srv/oldterm.$1 /n/oldtermmount -c /srv/oldwsys.$1 /n/oldwsysbind /n/oldterm/dev/cons /dev/consbind /n/oldterm/dev/consctl /dev/consctlbind -a /n/oldterm/dev /devbind -b /n/oldwsys /devbind -bc /n/oldterm /mnt/termbind -bc /n/oldwsys /mnt/wsysexit ''