in reply to Re: Perl/Linux
in thread Perl/Linux

Don't think you need a c compiled init:
lilo: linux init="/usr/bin/perl /usr/local/sbin/init.pl"
Now this is totally untested, but I have run a shell in place of init many times. Anyone know if the linux kernel or lilo take multiword environment variables?

Jon

Replies are listed 'Best First'.
Re^3: Perl/Linux
by Anonymous Monk on Oct 08, 2004 at 22:20 UTC
    You don't need to. If /sbin/init is mode (at least) 555 and starts with the line "#!/bin/perl" (without quotes of course) and perl is really in /bin (no link) then this script will start as init. /usr/bin/perl doesn't work every time because /usr could be umounted.
      If /usr is on a seperate fs, it would also require having /usr/lib/perl moved to /lib/perl; other library dependencies would have to be moved too...including any needed modules.

      I've talked about this enough. I think I'm going to throw together a test system :D

      Jon