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:
chkfsys /
This does indeed run chkfsys, but after it runs I get an error
message:
/etc/rc.d/rc.sysinit [79]: 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)”
. $etc_host/rc.d/rc.local
68 elif test -x /etc/rc.d/rc.local; then
echo “Starting extra run commands”
. /etc/rc.d/rc.local
fi
Change the path to back before starting init
P=-p
if test ! -z “$SAFEMODE”; then
unset P
fi
79 if test -f /etc/system/config/nophoton; then
unset P
fi
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:
chkfsys /
or
chkfsys ‘/’
in it. I guess I’ll try just uncommenting the chkfsys in
rc.sysinit…
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