Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!modus!otello!gear!cadlab!albani From: albani@cadlab.sublink.ORG (Lanfranco Albani) Newsgroups: comp.unix.admin Subject: Re: Is there something like 'shutdownrc' at SunOS 4.1 ? Message-ID: <868@cadlab.sublink.ORG> Date: 27 May 91 14:01:15 GMT References: <138@speedy.ada.cci.de> Organization: CAD.LAB, Bologna, Italia Lines: 24 smeets@speedy.ada.cci.de (Vincent Smeets) writes: >I have looked at the 'shutdown' program itself, but that is no >shellscript so I can't change anything. Easy, make your own! :-) Rename /etc/shutdown as /etc/shutdown.bin, write down a script like this: --------cut-here-------- #!/bin/sh # add all the stuff you need ..... # and say goodbye... /bin/echo "Good bye, cruel world!" /etc/shutdown.bin # the REAL shutdown program --------cut-here-------- name this /etc/shutdown, check the permissions, et voila'! Bye, Lanfranco -- Lanfranco Albani - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia Email: (work:) albani@cadlab.sublink.org, (home:) bob@allan.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 727372; Fax: ++39 (51) 366964 (work only), Fidonet: 2:332/407.1138 (home only).