[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] wish to Cobalt: suppressing "sensitive" information



/etc/rc.d/rc.local (/etc/rc.local is a mistake, it should be
/etc/rc.d/rc.local) is a bash script that is run every time your 
RaQ (or any Linux machine) is booted.  The following perl
command does a search and replace(with nothing) for the following 
lines in rc.local: 
echo "Cobalt Linux $R" >> /etc/issue
echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue

The correct command would be:
$ perl -pi -e 's#^echo.*>>\s/etc/issue$##' /etc/rc.d/rc.local

This would clear your existing issue files:
$ echo "" > /etc/issue
$ echo "" > /etc/issue.net

Jeff-

> Hi Jeff,

>> Very good suggestions.
> Thanks ;-) I am charmed to hear that from a professional :)

>> $ perl -pi -e 's#^echo.*>>\s/etc/issue$##' /etc/rc.local
> What does this command line do? Does it write an empty configuration
> for /etc/issue in the /etc/rc.local file?

> Will you include this as default in one of the next patches?

> Thanks,
> Florian

> -- 
> Florian Effenberger