Add support for custom shell script on boot.

This commit is contained in:
lemniskett 2021-01-13 01:49:53 +07:00
parent fc002c7f84
commit b5f0e108d1
2 changed files with 10 additions and 0 deletions

View File

@ -90,6 +90,10 @@ To start services immediately, in Archbox, do :
```
sudo archboxctl exec <Service name>
```
##### Custom command on boot
You can create a shell script located at ```/etc/archbox.rc``` and ```archboxinit``` will execute it in Archbox on boot.
#### Desktop entries
Use ```archbox-desktop``` to install desktop entries in chroot to host (installed to ```~/.local/share/applications/archbox```)
#### Lauching apps via rofi

View File

@ -48,6 +48,12 @@ case $1 in
chroot $CHROOT /bin/su -c "/usr/local/bin/archboxctl exec $j" > /dev/null 2>&1 &
fi
done
if [[ -e /etc/archbox.rc ]]; then
cp /etc/archbox.rc /tmp/archbox.rc
chmod +x /tmp/archbox.rc
chroot $CHROOT /bin/su -c '/tmp/archbox.rc' > /tmp/archbox.rc.log 2>&1
rm /tmp/archbox.rc
fi
exit 0
;;
stop)