Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'error in script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
error in script
Authored by: ahl on Jul 22, '02 10:02:00PM

There is an error in the script, which is in the line after

        case ${var} in)

There should be a '' before the '#' to stop the shell from interpreting the line as a comment:

        \#*|'')

It appears that backslash characters are being "reduced" by the "posting" editor--in plain text you need two in the message for each one you want in the output, and in HTML you need FOUR!!!

I'm surprised that this script isn't there already, as it's a standard FreeBSD script. Maybe someone with Jaguar can check whether it's there in the newer OS?

[ Reply to This | # ]

error in script
Authored by: timrob on Jul 23, '02 02:00:16PM

You are correct. Thanks for spotting this.
I chose to edit the startup item because they were
already using the sysctl command there. Good point though
about editing /System/Libray/StartupItems. I just copied
the /System/Libray/StartupItems/SystemTuning to /Library/StartupItems
and edited out the original text leaving my added script. It works fine,
but sysctl.conf is read much later in the boot sequence.
I do hope that they include this function in 10.2.



[ Reply to This | # ]
error in script
Authored by: froz on Jul 24, '02 03:39:39AM

There are a couple more errors, the last two lines of /etc/rc.sysctl should be:

[whitespace]done < /etc/rc.sysctl
fi

the keyword/value pairs in /etc/sysctl.conf should be
kw=val instead of kw: val

It's kind of hard to post code fragments as HTML without being able to escape angle brackets, etc.



[ Reply to This | # ]