The good inttabd_paths.patch.
Le jeu. 2 janv. 2020 à 08:25, Didier Gaudin <didier.gau...@gmail.com> a écrit : > > Hello, > Happy new year! > I send you my patch to add /etc/inttab.d support. > > The patch scan the /etc/inittab.d/ and read only the first line of *.tab > files. > Can you give me your feed-back about this patch. > > Didier. > > > Le mer. 25 déc. 2019 à 09:50, Petter Reinholdtsen <p...@hungry.com> a écrit : > > > > > > Hello, and Merry Christmas. :) > > > > [Didier.Gaudin] > > > do you think it is possible, to have a directory /etc/inittab.d in > > > addition to the /etc/inittab to add service : 1 custom service per file > > > ? > > > > I believe it is both possible and an advantage. :) Perhaps you can > > create a patch to do so? > > > > -- > > Happy hacking > > Petter REinholdtsen
--- sysvinit.orig/src/paths.h 2019-12-31 19:09:12.734989708 +0100 +++ sysvinit/src/paths.h 2019-12-30 20:14:13.022858492 +0100 @@ -27,6 +27,7 @@ #define SECURETTY "/etc/securetty" /* List of root terminals */ #define SDALLOW "/etc/shutdown.allow" /* Users allowed to shutdown */ #define INITTAB "/etc/inittab" /* Location of inittab */ +#define INITTABD "/etc/inittab.d" /* Location of inittab.d directory */ #define INIT "/sbin/init" /* Location of init itself. */ #define NOLOGIN "/etc/nologin" /* Stop user logging in. */ #define FASTBOOT "/fastboot" /* Enable fast boot. */