Page 1 of 1

New User Startup Script

Posted: Tue Aug 31, 2021 3:21 pm
by jca
Does anyone knows how to use this thing?
Until now I had my own S99xxx scripts in /etc/init.d but I have to reinstall them each time there is a Linux update. I suppose this new system which consists of /etc/init.d/S99User and /media/fat/linux/user-startup.sh will allow preservation of custom scripts when Linux is updated.

Re: New User Startup Script

Posted: Wed Sep 01, 2021 8:45 pm
by ziggurat
Just create the file `/media/fat/linux/user-startup.sh`

The first line of the file needs to be a shebang, so start the file with something like `#!/bin/sh` if you are okay with just a POSIX script or `#!/usr/bin/env bash` if you want a bash script.
Then just do what you want. If its a simple script that doesn't need fancy things from bash try the POSIX, they can be faster to run. I don't go out of my way to use only POSIX scripts, but if I can.