Mercurial > hg > dtl-dml-home
annotate etc/rc.local @ 91:e8a0c3e2d28a dml-dockerised
added install for sw build requirements
| author | wolffd <wolffd.mail@googlemail.com> |
|---|---|
| date | Tue, 05 Jun 2018 17:40:51 +0100 |
| parents | 7d34f4b6df69 |
| children |
| rev | line source |
|---|---|
| samer@0 | 1 #!/bin/sh -e |
| samer@0 | 2 # |
| samer@0 | 3 # rc.local |
| samer@0 | 4 # |
| samer@0 | 5 # This script is executed at the end of each multiuser runlevel. |
| samer@0 | 6 # Make sure that the script will "exit 0" on success or any other |
| samer@0 | 7 # value on error. |
| samer@0 | 8 # |
| samer@0 | 9 # In order to enable or disable this script just change the execution |
| samer@0 | 10 # bits. |
| samer@0 | 11 # |
| samer@0 | 12 if [ -x ~dml/.boot ]; then |
| samer@0 | 13 echo "Executing boot script for user dml" |
| samer@0 | 14 sudo -u dml mkdir -p ~dml/var/log |
| samer@0 | 15 sudo -u dml -H bash -l -c '~/.boot >> ~/var/log/boot.log' |
| samer@0 | 16 fi |
| samer@0 | 17 exit 0 |
