mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-27 02:01:53 +01:00
fsck the harddisk on every boot #360
This commit is contained in:
parent
4dd993ce0d
commit
d37e49b41a
@ -25,7 +25,8 @@ if [ ${existsHDD} -gt 0 ]; then
|
||||
uuid=$1
|
||||
fstabOK=$(cat /etc/fstab | grep -c ${uuid})
|
||||
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 ${fstabAdd}
|
||||
# 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 ""
|
||||
|
||||
# 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
|
||||
configFile="/mnt/hdd/raspiblitz.conf"
|
||||
configExists=$(sudo ls ${configFile} | grep -c 'raspiblitz.conf')
|
||||
|
@ -62,10 +62,10 @@ echo "******************************"
|
||||
echo ""
|
||||
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 "Go to http://www.zap-ios.jackmallers.com sign up with your email (confirmation can take time)"
|
||||
echo "iOS: Read https://developer.apple.com/testflight/testers/"
|
||||
echo "1. Install the app 'TestFlight' from Apple Appstore. Open it and agree to all terms of services."
|
||||
echo "2. Open on your iOS device https://github.com/LN-Zap/zap-iOS and follow 'Download the Alpha'"
|
||||
echo ""
|
||||
echo "*** STEP 1 ***"
|
||||
echo "*** PAIRING STEP 1 ***"
|
||||
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)."
|
||||
fi
|
||||
@ -77,7 +77,7 @@ echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it
|
||||
read key
|
||||
|
||||
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 you drop the -i parameter, lndconnect will use the external IP.
|
||||
|
Loading…
x
Reference in New Issue
Block a user