Actually, it seems there isn't anything in particular about being in a script that causes init-checkconf to return random results. If I repeat the same command a number of times the results vary:
----
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
ERROR: File /etc/init/tty5.conf: syntax invalid:
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
ERROR: File /etc/init/tty5.conf: syntax invalid:
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
----
As is evident, sometimes the syntax is reported as being ok and sometimes invalid.
Actually, it seems there isn't anything in particular about being in a script that causes init-checkconf to return random results. If I repeat the same command a number of times the results vary:
---- /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax invalid: /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax invalid: /oldroot/ home/drewes# init-checkconf /etc/init/tty5.conf tty5.conf: syntax ok
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
ERROR: File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
File /etc/init/
root@ladastra:
ERROR: File /etc/init/
root@ladastra:
File /etc/init/
----
As is evident, sometimes the syntax is reported as being ok and sometimes invalid.
Rich