[Pkg-sysvinit-devel] Re: r329 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood at yahoo.co.uk
Thu Dec 15 16:54:33 UTC 2005


Petter Reinholdtsen wrote:
>> -	if [ -x /bin/dmesg ] || [ -x /sbin/dmesg ]
>> +	if which dmesg >/dev/null 2>&1
> 
> Is this safe?  The which command is part of bash, but is it part of
> all the other /bin/sh candidates?


No, it's a separate program.


> I am quite sure /usr/bin/which is not safe to call at this point
> in the boot, and that is the replacement.


The program is actually at /bin/which.  /usr/bin/which is a symlink.
(This is true as of debianutils 2.12.0.)

-- 
Thomas



More information about the Pkg-sysvinit-devel mailing list