Browse Source

Remove an if loop.. only need it

master
nolim1t 5 years ago
parent
commit
642f90c695
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 41
      stage2/01-sys-tweaks/files/rc.local

41
stage2/01-sys-tweaks/files/rc.local

@ -57,28 +57,27 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then
fi fi
# Next stage, check if service-configured # Next stage, check if service-configured
if [ -f /home/umbrel/statuses/service-configured ]; then echo "Service configured.. Checking for partitioned state"
echo "Service configured.. Checking for partitioned state" if [ -f /home/umbrel/statuses/disk-partitioned ]; then
if [ -f /home/umbrel/statuses/disk-partitioned ]; then if [ ! -f /etc/rc2.d/S01umbrelbox ]; then
echo "If disk partitioned then start up Umbrel" echo "Set up symlinks"
echo "Set up symlinks" ln -s /etc/init.d/umbrelbox /etc/rc2.d/S01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc2.d/S01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc3.d/S01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc3.d/S01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc4.d/S01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc4.d/S01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc5.d/S01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc5.d/S01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc0.d/K01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc0.d/K01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc1.d/K01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc1.d/K01umbrelbox ln -s /etc/init.d/umbrelbox /etc/rc6.d/K01umbrelbox
ln -s /etc/init.d/umbrelbox /etc/rc6.d/K01umbrelbox # Do partitioning at first boot
# Do partitioning at first boot echo "Enabling defaults for umbrelbox"
echo "Enabling defaults for umbrelbox" update-rc.d umbrelbox defaults || exit 1
update-rc.d umbrelbox defaults || exit 1 echo "Enabling startup for umbrel box"
echo "Enabling startup for umbrel box" update-rc.d umbrelbox enable || exit 1
update-rc.d umbrelbox enable || exit 1 echo "starting up umbrelbox get it started now)"
echo "starting up umbrelbox get it started now)" /etc/init.d/umbrelbox start
/etc/init.d/umbrelbox start
else
echo "Disk not partitioned, will not start umbrel-compose framework (Please do it manually)"
fi fi
else
echo "Disk not partitioned, will not start umbrel-compose framework (Please do it manually)"
fi fi
fi fi

Loading…
Cancel
Save