Is there a recommended way to add lines to the confconsole usage.txt file?

I tried: 

#add usage information
$USAGE=/etc/confconsole/usage.txt
sed -i -e "6 a OpenFire Admin: https://$ipaddr:9090" -e "6 a OpenFire:   $ipaddr:5222" $USAGE
sed -i '9,10 d' $USAGE

 

I got this error when trying to patch an iso with the patch file:

/tmp/tklpatch/conf: line 38: =/etc/confconsole/usage.txt: No such file or directory
 

Replies (4)

Remove leading $ sign

Reply 1

Remove the leading $ in this line:

$USAGE=/etc/confconsole/usage.txt

It thinks you are calling the variable instead of declaring it.

Thanks

Reply 2

I can't believe I made that mistake. I guess I've been looking at code for too long and it's starting to get all jumbled in my head.

I have done it too!

Reply 3

The reason I saw it so quickly is because I have made that mistake many, many times too!

I would just use the overlay

Reply 4
I would just use the overlay, its a lot simpler and less error prone.