But with a small change to the rc script (it could check the existence of a valid runlevel rc?.d directory and only use it if found) all other scripts can be hold unchanged, eaven after package updates.
Alex Cópia Bill Campbell <[EMAIL PROTECTED]>: > On Tue, Jan 20, 2004, [EMAIL PROTECTED] wrote: > >So far so good, but while does the rc command doesn't also use a rc?.d > > >structure so that > > /opkg/etc/rc bind start > >will run the script linked to the currend runlevel /opkg/etc/rc?.d (not > just > >rc.d) making it easy to control what starts with rc all start / stop > ? > >seams to be a small hack to the rc script > > The Linux systems (current SuSE and old Caldera) I have here all have > a > ``runlevel'' command that returns the current run level, and it would > be > trivial to use that within indivudual %{l_prefix}/rc.d/rc.$package > scripts. > > It seems to me that this is only important for a very limited set of > packages so it would be better to let the individual packages handle > it > where appropriate rather than hack the openpkg rc script to do it. > > Bill > -- > INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC > UUCP: camco!bill PO Box 820; 6641 E. Mercer Way > FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) > 236-1676 > URL: http://www.celestial.com/ > > Instead of giving money to found colleges to promote learning, why > don't > they pass a constitutional amendment prohibiting anybody from learning > anything? If it works as good as the Prohibition one did, why, in > five > years we would have the smartest race of people on earth. > -- The Best of Will Rogers > ______________________________________________________________________ > The OpenPKG Project www.openpkg.org > User Communication List [EMAIL PROTECTED] > ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]