if '#1' != '' goto check_arg echo -e No device specified exit %check_arg if #1 = fda goto begin if #1 = fdb goto begin if #1 = fdc goto begin if #1 = fdd goto begin if #1 = sfda goto begin if #1 = sfdb goto begin if #1 = sfdc goto begin if #1 = sfdd goto begin if #1 = hd0 goto begin if #1 = hd1 goto begin if #1 = hd2 goto begin %arg_err echo -e Illegal argument: '"#1"' exit %begin d / echo -n Now updating disk #1 ... mode -pause create /drive mount #1 /drive wboot #1 %updatefiles cptree -f /bin /drive/bin cptree -f /cmd /drive/cmd copy -f /cromix.sys /drive cptree -f /dev /drive/dev cptree -f /equ /drive/equ d /drive/etc move -f motd motd.old >* /dev/null move -f startup.msg startup.msg.old >* /dev/null d /etc copy -f fdboot hdboot ioload.bin iostartup.iop.cmd login.bin motd drive/etc copy -f octart.iop oct_reset.bin quadart.iop sfdboot /drive/etc copy -f startup.msg ttys.iop /drive/etc d / makd /drive/gen >* /dev/null cptree -f /gen /drive/gen cptree -f /usr /drive/usr d /drive chowner bin bin cmd dev equ etc gen usr access rewa.e.e etc %update complete d / unmount #1 del /drive mode pause echo echo Finished updating disk #1 echo echo "**** Now reset the computer and boot onto your root device ****" kill -2 1