~pixelherodev/ANTS

70ec291cc66be06629732b4281f88f4eadbc13f8 — Noam Preil 1 year, 6 months ago f74eeca
term: clean up initialization
2 files changed, 5 insertions(+), 1 deletions(-)

M rc/bin/termrc
M sys/src/cmd/init.c
M rc/bin/termrc => rc/bin/termrc +4 -0
@@ 94,3 94,7 @@ if(test -f /dev/apm)
	aux/apm

dontkill '^(ipconfig|factotum|mntgen|venti|hjfs|fossil|cfs|cwfs.*|9660srv|dossrv|paqfs|cs|dns|listen|reboot|usbd|kb|disk|ether|wpa)$'

home=/usr/$user
cd
. ./lib/profile

M sys/src/cmd/init.c => sys/src/cmd/init.c +1 -1
@@ 143,7 143,7 @@ rcexec(void)
	else if(manual || iscpu)
		execl("/bin/rc", "rc", nil);
	else if(strcmp(service, "terminal") == 0)
		execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc; home=/usr/$user; cd && . ./lib/profile", nil);
		execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc", nil);
	else
		execl("/bin/rc", "rc", nil);
}