https://github.com/inndy/user-startup-scripts
A script that run $HOME/.startup.sh at boot
https://github.com/inndy/user-startup-scripts
Last synced: 3 months ago
JSON representation
A script that run $HOME/.startup.sh at boot
- Host: GitHub
- URL: https://github.com/inndy/user-startup-scripts
- Owner: Inndy
- Created: 2014-11-10T12:25:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T12:43:26.000Z (about 11 years ago)
- Last Synced: 2025-02-23T10:46:18.262Z (11 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# user-startup-scripts
## Installation
``` sh
sudo cp user-startup-scripts.sh /etc/init.d/user-startup-scripts
sudo chmod +x /etc/init.d/user-startup-scripts
# runlevel 2 for Ubuntu, execute "runlevel" to see what runlevel is
sudo ln -s /etc/init.d/user-startup-scripts /etc/rc2.d/S99user-startup-scripts
```
## Notice
This script will run `{/home/{username}/.startup.sh}` as user `{username}`
***Beware of*** `/home/root` or ***other high permission username***
## About runlevel
see [Wikipedia](http://en.wikipedia.org/wiki/Runlevel) for futher information.
## How to use
Edit `$HOME/.startup.sh` and give it execute permission.
(`$HOME` must be `/hoem/{username}`)