In article <87r5sudn0p.fsf...@anzu.internal.golden-gryphon.com> you wrote:
>     [ "$(stat -c %d/%i /sbin/init)" = "$(stat -Lc %d/%i /proc/1/exe 
> 2>/dev/null)" ] ; then
>     # So, init exists, and there is a linuxy /proc, and the inode of
>     # the executable of the process with uid 1 is the same as
>     # /sbin/init (ok, no init=/bin/sh going on)
Maybe another check besides inode idendity is better, otherwise it will not
be able to be used afer an upgrade (and before reboot), or?

And for the "else" case a diagnostics message would be good.

Gruss
Bernd


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to