Run script after boot

Post here if you are a new Porteus member and you're looking for some help.
User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Run script after boot

Post#16 by francois » 28 Jan 2015, 03:42

When porteus is booted, what is the output of your script in command line:

Code: Select all

root@porteus:~# /urs/bin/Script.sh
Voltaire: Le mieux est l'ennemi du bien.

beny
Full of knowledge
Full of knowledge
Posts: 730
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Run script after boot

Post#17 by beny » 28 Jan 2015, 21:25

hi brokenman guiexec not work with user script,i have tried in my system and with the autostart panel in settings i can run automatically my tvheadend script,that work in background with xbmc.btw with xfce porteus not

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Run script after boot

Post#18 by brokenman » 28 Jan 2015, 22:41

Tested twice here (in xfce) with user script and it works fine.

cat /mnt/sda8/dump/test.sh
#!/bin/bash
echo "This is a test" > /tmp/test.txt
chmod +x /mnt/sda8/dump/test.sh

Boot line: guiexec=/mnt/sda8/dump/test.sh

After boot the file /tmp/test.txt exists.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply