Path: utzoo!attcan!uunet!cbmvax!ditto From: ditto@cbmvax.UUCP (Michael "Ford" Ditto) Newsgroups: comp.sys.att Subject: Run levels 5 & 6 (Re: AT&T 386 UNIX reboot) Summary: I edited /etc/rc0 Message-ID: <5284@cbmvax.UUCP> Date: 21 Nov 88 18:56:58 GMT References: <254@ssbn.WLK.COM> Reply-To: ditto@cbmvax.UUCP (Michael "Ford" Ditto) Organization: Commodore Technology, West Chester, PA Lines: 23 In article <254@ssbn.WLK.COM> bill@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@kenobi.cts.com - The Unix Programmer's Manual, ...!sdcsvax!crash!elgar!ford 2nd Edition, June, 1972. ditto@cbmvax.commodore.com