How to edit a file on IGEL OS and have it executed one time only?

Hi, I want to edit a file on client. In the UMS I use a profile. At “firmware customization/own commands/basic/final command” I put the commands in. Is it executed as root? If not, how I can make sure it does? Second question is if it can be executed one time only.

Learn more, read the entire thread inside the IGEL Community o Slack

Hi, it is executed in a root context, you could write a check file after first execution, if it exists, the script doesn’t start again.

Unfortunately it seems not to be executed. Where can find more details about why?

Well, you could add a logger to this

# output to systemlog with ID amd tag

LOGGER=”logger -it ${ACTION}”

Your action | $LOGGER

I want to add a line to etc/hosts. How would your command look like in the profile?

Why not using the host function in a profile instead?

In general: I would let the custom command create a script in /wfs, and then execute it:

cat <<“EOF” > /wfs/


# output to systemlog with ID tag

LOGGER=”logger -it ${ACTION}”

Your action | $LOGGER


chmod +x /wfs/

/bin/bash /wfs/

Perfect ! Thank you.

Continue reading and comment on the thread ‘How to edit a file on IGEL OS and have it executed one time only?’.  Not a member? Join Here!

Learn more, search the IGEL Knowledge Base

Ask a question or comment on the above message thread?

Join or log in to the IGEL Community to ask us anything and meet other IGEL customers, partners, and EUC enthusiasts.

Submit a question, or Join Today!

Popular Message Threads

Categories & Tags: