mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
fix conflicts
This commit is contained in:
@@ -589,8 +589,7 @@ if [ "${baseImage}" = "raspbian" ]; then
|
|||||||
display_rotate=3
|
display_rotate=3
|
||||||
|
|
||||||
dtoverlay=i2c-gpio,i2c_gpio_scl=24,i2c_gpio_sda=23
|
dtoverlay=i2c-gpio,i2c_gpio_scl=24,i2c_gpio_sda=23
|
||||||
EOF
|
|
||||||
init 6
|
|
||||||
fi
|
fi
|
||||||
fi
|
EOF
|
||||||
EOF
|
init 6
|
||||||
|
fi
|
@@ -42,25 +42,19 @@ if [ ${existsHDD} -gt 0 ]; then
|
|||||||
sudo mount -a
|
sudo mount -a
|
||||||
mountOK=$(df | grep -c /mnt/hdd)
|
mountOK=$(df | grep -c /mnt/hdd)
|
||||||
if [ ${mountOK} -eq 1 ]; then
|
if [ ${mountOK} -eq 1 ]; then
|
||||||
|
|
||||||
echo "OK - HDD is mounted"
|
echo "OK - HDD is mounted"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# init the RASPIBLITZ Config (if not exist on provision)
|
# init the RASPIBLITZ Config
|
||||||
configExists=$(sudo ls /mnt/hdd/raspiblitz.conf | grep -c 'raspiblitz.conf')
|
source /home/admin/_version.info
|
||||||
if [ ${configExists} -eq 0 ]; then
|
configFile="/mnt/hdd/raspiblitz.conf"
|
||||||
echo "Creating raspiblitz.conf on HDD"
|
sudo touch $configFile
|
||||||
source /home/admin/_version.info
|
sudo chmod 777 ${configFile}
|
||||||
configFile="/mnt/hdd/raspiblitz.conf"
|
echo "# RASPIBLITZ CONFIG FILE" > $configFile
|
||||||
echo "# RASPIBLITZ CONFIG FILE" > $configFile
|
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
|
||||||
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
|
echo "network=${network}" >> $configFile
|
||||||
echo "network=${network}" >> $configFile
|
echo "chain=${chain}" >> $configFile
|
||||||
echo "chain=${chain}" >> $configFile
|
echo "hostname=${hostname}" >> $configFile
|
||||||
echo "hostname=${hostname}" >> $configFile
|
|
||||||
sudo chmod 777 ${configFile}
|
|
||||||
echo "OK"
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move SSH pub keys to HDD so that they survive an update
|
# move SSH pub keys to HDD so that they survive an update
|
||||||
echo "moving SSH pub keys to HDD"
|
echo "moving SSH pub keys to HDD"
|
||||||
|
Reference in New Issue
Block a user