Re: /etc/rc shebang

2025-03-16 Thread Edgar Fuß
EF> I know /etc/init called /bin/sh /etc/rc back in the day, KRE> It still does, normally. Yes, that's what I found when reading init.c. > Not really. Well, it's /sbin/init now. > "Executing a script" is just a shorthand way of saying "exexute > the interpreter for which this script is designed t

Re: /etc/rc shebang

2025-03-12 Thread Robert Elz
Date:Wed, 12 Mar 2025 18:01:41 +0100 From:Edgar Fuß Message-ID: | I know /etc/init called /bin/sh /etc/rc back in the day, It still does, normally. | but things may have changed. Not really. | init(8) says "Executes /etc/rc". It does, but "rc" is "run comm

/etc/rc shebang

2025-03-12 Thread Edgar Fuß
I was wondering whether I could have /etc/rc being executed by another shell (/rescue/sh). I know /etc/init called /bin/sh /etc/rc back in the day, but things may have changed. init(8) says "Executes /etc/rc". /etc/rc has #!/bin/sh. But sbin/init.c has argv[0] = "sh"; argv[1] =