Skip to content

Commit

Permalink
Remove spurious binary line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Apr 5, 2023
1 parent e5e962c commit 4bba205
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified home/piano.sh
Binary file not shown.
Binary file modified www/util/automount.sh
Binary file not shown.
4 changes: 2 additions & 2 deletions www/util/sysinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ CORES=`grep -c ^processor /proc/cpuinfo`
HOME_DIR=$(ls /home/)
# Similar to moodeutl
MEM_TOTAL=$(grep MemTotal /proc/meminfo | awk '{print $2}')
MEM_AVAIL=$(grep MemAvailable /proc/meminfo | awk '{print $2}')
MEM_AVAIL=$(grep MemAvailable /proc/meminfo | awk '{print $2}')
MEM_TOTAL=$(( $MEM_TOTAL / 1000 ))
MEM_AVAIL=$(( $MEM_AVAIL / 1000 ))
MEM_USED=$(( $MEM_TOTAL - $MEM_AVAIL ))
Expand Down Expand Up @@ -859,7 +859,7 @@ if [ $MODEL = 3 ]; then
elif [ $MODEL = 4 ]; then
BOOTLOADER_MIN_DATE=20200903
TMP=$(vcgencmd bootloader_version | awk 'NR==1 {print $1" " $2" " $3}')
BOOTLOADER_ACTUAL_DATE=$(date -d"$TMP" +%Y%m%d )
BOOTLOADER_ACTUAL_DATE=$(date -d"$TMP" +%Y%m%d
let DIFF=($(date +%s -d $BOOTLOADER_ACTUAL_DATE)-$(date +%s -d $BOOTLOADER_MIN_DATE))/86400
if (("$DIFF" >= "0")); then
USBBOOT="enabled"
Expand Down

0 comments on commit 4bba205

Please sign in to comment.