1

Topic: Execute a "custom" shell script

Hello,

is there a possibility to automatically execute an own shell-script
after the inital phase/steps and _before_ X is starting?

btw: using Gparted-Live with an usb stick and the script resides in the root
of the USB stick. But now I have to type "2" after the inital steps and start
the script manual. It sets xorg.conf and some other things for the user.

Would be good if I can start the script without userinput.

T.

2

Re: Execute a "custom" shell script

Hello,

is there _no_ way to run a cusom script, before X will be started?
That would be a nice feature, because then I do not have to build
my own live cd/usb. Perhaps I can append such a script to the
bootparam list?

On the other side:
If I build GParted Live by myself, what is the best place to
execute my "custumizing" script _before_ X is starting, and after
all other inital steps?

I find a script under: /opt/drbl/setup/files/gparted/gparted-live.d/S08pre-run
which seems to be executed _before_ X, but not sure if this is the right place
to place my shellscript. Actually I would assume to add a line after all other
commands like:

---snip---
[...]
  . $gp_prerun
fi

# my custom script
/live/image/startup.sh
---snap---

could work and which should do all my custom steps, but not sure.
Any help is appreciated. Thanks

T.

3

Re: Execute a "custom" shell script

In your case, you can put boot parameter "gp_prerun=/live/image/startup.sh".

Steven.