Run levels 5 & 6 (Re: AT&T 386 UNIX reboot)
Michael "Ford" Ditto
ditto at cbmvax.UUCP
Tue Nov 22 04:56:58 AEST 1988
In article <254 at ssbn.WLK.COM> bill at ssbn.WLK.COM (Bill Kennedy) writes:
>An article I posted earlier asks if anyone knows how to make run levels
>5 or 6 work with AT&T 386 UNIX.
Here's what I did: Append the following to /etc/rc0:
set `who -r`
[ $7 = 5 ] && /etc/uadmin 2 0
[ $7 = 6 ] && /etc/uadmin 2 1
Now, "shutdown -i5" will halt the machine and "shutdown -i6" will reboot it;
in both cases all filesystems (including root) are unmounted and marked as
"clean" so that they won't be automatically fsck'd when the system comes up.
This was actually on an Amiga, not a 386, but I suspect that it would work
if the command codes to uadmin are the same.
--
-=] Ford [=-
"The number of Unix installations (In Real Life: Mike Ditto)
has grown to 10, with more expected." ford at kenobi.cts.com
- The Unix Programmer's Manual, ...!sdcsvax!crash!elgar!ford
2nd Edition, June, 1972. ditto at cbmvax.commodore.com
More information about the Comp.sys.att
mailing list