OK, starting from the beginning I wanted to run chkfsys /
on startup. It was suggested that I put it into
/etc/rc.d/rc.local. So that I wouldn’t have to modify
/etc/rc.d/rc.sysinit (It will spill and an error could
prevent proper booting). Actually since rc.local is
“dotted” into rc.sysinit, this latter argument should be
expanded to rc.local can prevent booting as well…
I’ve just tried a trivial rc.local containing the line:
This does indeed run chkfsys, but after it runs I get an error
/etc/rc.d/rc.sysinit : syntax error: ‘if’ unmatched.
Unable to run rc.sysinit, starting a shell.
Now if you look at rc.sysinint:
65 if test ! -z “$etc_host” -a -x $etc_host/rc.d/rc.local; then
echo “Starting extra run commands for $(hostname)”
68 elif test -x /etc/rc.d/rc.local; then
echo “Starting extra run commands”
Change the path to back before starting init
if test ! -z “$SAFEMODE”; then
79 if test -f /etc/system/config/nophoton; then
In lines 65/68 we see the test for rc.local and that it is
run (dotted) in the following line.
It’s unclear to me why I get the syntax error on line 79 if
rc.local has a line:
in it. I guess I’ll try just uncommenting the chkfsys in
Previously, WeN wrote in qdn.public.qnxrtp.applications:
I don’t really get your prob … wat’s the exact error msg?
Wat do you mean by rc.local is ‘dotted’ ?
David L. Hawley D.L. Hawley and Associates