summaryrefslogtreecommitdiff
path: root/rc/bin/termrc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-21 22:22:25 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-21 22:22:25 +0000
commitb14bc93a797c909fb3e1bf2681aa8277043c6cf0 (patch)
treeb1fd502f96dacc9909a98e484692ad9b9287f92b /rc/bin/termrc
parente8635a732af4bb7b41be4d9b7cb4ee5cac3fdbd6 (diff)
boot(8): cleanup enviroment variables before init
Diffstat (limited to 'rc/bin/termrc')
-rwxr-xr-xrc/bin/termrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc/bin/termrc b/rc/bin/termrc
index f4cb46159..e13450dde 100755
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -8,6 +8,7 @@ mntgen -s slashn && chmod 666 /srv/slashn
# bind all likely devices (#S was bound in boot)
for(i in f t m v L P u U '$' Σ κ)
/bin/bind -a '#'^$i /dev >/dev/null >[2=1]
+rm -f /env/i
# set up any partitions
diskparts
@@ -16,7 +17,7 @@ diskparts
disk=`{ls /dev/sd*/swap >[2]/dev/null}
if (! ~ $#disk 0)
swap $disk(1) >/dev/null >[2=1]
-rm /env/disk
+rm -f /env/disk
# we do this before we have a name. we may need to do network
# setup so that we can get a name.
@@ -107,6 +108,7 @@ if(! ~ $"vgasize '' text none){
}
}
}
+rm -f '/env/fn#ask'
usbstart
if (test -f /dev/apm)