TurnKey Linux Virtual Appliance Library

modifying usage.txt

turnkey_1972's picture

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

I tried: 

#add usage information
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

Neil Aggarwal's picture

Remove leading $ sign

Remove the leading $ in this line:


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

Stas Grishin's picture


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.

Neil Aggarwal's picture

I have done it too!

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

Alon Swartz's picture

I would just use the overlay

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

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)