vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

rcvx (365B)


      1 #!/bin/sh
      2 # rcvx: rc from the 9vx embedded image
      3 
      4 cmd="/386/bin/bind -a /386/bin /bin;
      5 	bind -a /rc/bin /bin;
      6 	cd /bin;
      7 	echo Commands: *;
      8 	cd '#Z"`pwd`"';
      9 	prompt=\$sysname'% ';
     10 	rc $@;
     11 	echo reboot > '#c/reboot'"
     12 # double quotes in cmd to pass it to rc -c
     13 cmd=`echo $cmd | sed "s;';'';g"`
     14 exec 9vx -g "init=/386/bin/rc -c '$cmd'
     15 	nobootprompt=local!/boot/rootfs"