mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
fsck the harddisk on every boot #360
This commit is contained in:
@@ -25,7 +25,8 @@ if [ ${existsHDD} -gt 0 ]; then
|
|||||||
uuid=$1
|
uuid=$1
|
||||||
fstabOK=$(cat /etc/fstab | grep -c ${uuid})
|
fstabOK=$(cat /etc/fstab | grep -c ${uuid})
|
||||||
if [ ${fstabOK} -eq 0 ]; then
|
if [ ${fstabOK} -eq 0 ]; then
|
||||||
fstabAdd="UUID=${uuid} /mnt/hdd ext4 noexec,defaults 0 0"
|
# see https://github.com/rootzoll/raspiblitz/issues/360#issuecomment-467567572
|
||||||
|
fstabAdd="UUID=${uuid} /mnt/hdd ext4 noexec,defaults 0 2"
|
||||||
echo "Adding line to /etc/fstab ..."
|
echo "Adding line to /etc/fstab ..."
|
||||||
echo ${fstabAdd}
|
echo ${fstabAdd}
|
||||||
# adding the new line after line 3 to the /etc/fstab
|
# adding the new line after line 3 to the /etc/fstab
|
||||||
@@ -46,6 +47,10 @@ if [ ${existsHDD} -gt 0 ]; then
|
|||||||
echo "OK - HDD is mounted"
|
echo "OK - HDD is mounted"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
# setting fsk check intervall to 1
|
||||||
|
# see https://github.com/rootzoll/raspiblitz/issues/360#issuecomment-467567572
|
||||||
|
sudo tune2fs -c 1 /dev/sda1
|
||||||
|
|
||||||
# init the RASPIBLITZ Config
|
# init the RASPIBLITZ Config
|
||||||
configFile="/mnt/hdd/raspiblitz.conf"
|
configFile="/mnt/hdd/raspiblitz.conf"
|
||||||
configExists=$(sudo ls ${configFile} | grep -c 'raspiblitz.conf')
|
configExists=$(sudo ls ${configFile} | grep -c 'raspiblitz.conf')
|
||||||
|
@@ -62,10 +62,10 @@ echo "******************************"
|
|||||||
echo ""
|
echo ""
|
||||||
echo "GETTING THE APP"
|
echo "GETTING THE APP"
|
||||||
echo "At the moment this app is in closed beta testing and the source code has not been published yet."
|
echo "At the moment this app is in closed beta testing and the source code has not been published yet."
|
||||||
echo "Go to http://www.zap-ios.jackmallers.com sign up with your email (confirmation can take time)"
|
echo "1. Install the app 'TestFlight' from Apple Appstore. Open it and agree to all terms of services."
|
||||||
echo "iOS: Read https://developer.apple.com/testflight/testers/"
|
echo "2. Open on your iOS device https://github.com/LN-Zap/zap-iOS and follow 'Download the Alpha'"
|
||||||
echo ""
|
echo ""
|
||||||
echo "*** STEP 1 ***"
|
echo "*** PAIRING STEP 1 ***"
|
||||||
if [ ${#dynDomain} -eq 0 ]; then
|
if [ ${#dynDomain} -eq 0 ]; then
|
||||||
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
|
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
|
||||||
fi
|
fi
|
||||||
@@ -77,7 +77,7 @@ echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it
|
|||||||
read key
|
read key
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "*** STEP 2 : Click on Scan (make whole QR code fill camera) ***"
|
echo "*** PAIRING STEP 2 : Click on Scan (make whole QR code fill camera) ***"
|
||||||
|
|
||||||
if [ ${#dynDomain} -eq 0 ]; then
|
if [ ${#dynDomain} -eq 0 ]; then
|
||||||
# If you drop the -i parameter, lndconnect will use the external IP.
|
# If you drop the -i parameter, lndconnect will use the external IP.
|
||||||
|
Reference in New Issue
Block a user