nolim1t
5 years ago
No known key found for this signature in database
GPG Key ID: F6287B82CC84BCBD
1 changed files with
20 additions and
21 deletions
-
stage2/01-sys-tweaks/files/rc.local
|
|
@ -57,10 +57,9 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
# Next stage, check if service-configured |
|
|
|
if [ -f /home/umbrel/statuses/service-configured ]; then |
|
|
|
echo "Service configured.. Checking for partitioned state" |
|
|
|
if [ -f /home/umbrel/statuses/disk-partitioned ]; then |
|
|
|
echo "If disk partitioned then start up Umbrel" |
|
|
|
if [ ! -f /etc/rc2.d/S01umbrelbox ]; then |
|
|
|
echo "Set up symlinks" |
|
|
|
ln -s /etc/init.d/umbrelbox /etc/rc2.d/S01umbrelbox |
|
|
|
ln -s /etc/init.d/umbrelbox /etc/rc3.d/S01umbrelbox |
|
|
@ -76,10 +75,10 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then |
|
|
|
update-rc.d umbrelbox enable || exit 1 |
|
|
|
echo "starting up umbrelbox get it started now)" |
|
|
|
/etc/init.d/umbrelbox start |
|
|
|
fi |
|
|
|
else |
|
|
|
echo "Disk not partitioned, will not start umbrel-compose framework (Please do it manually)" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
exit 0 |
|
|
|