Add Foxbuntu version number in /etc/foxbuntu-release

Also includes a temp fix for usb config issue
This commit is contained in:
nagumii 2024-12-17 14:38:07 +02:00
parent 9dc7fe6061
commit 12ac8bd1ec
3 changed files with 25 additions and 18 deletions

View file

@ -67,22 +67,26 @@ fi
# does not appear to lower power consumption, but needs more testing
#(sleep 5 && cpufreq-set -u 408000 && echo "Boot complete, setting CPU frequency to 408mhz.") &
# run USB automount and config tool
/usr/local/bin/usbconfig.sh
# boot complete
(
echo "Disabling ACT LED..."
echo "none" > /sys/class/leds/work/trigger &
sleep 1
sleep 5
# run USB automount and config tool
/usr/local/bin/usbconfig.sh
# blink successful boot code
for i in $(seq 1 5); do
echo 1 > /sys/class/gpio/gpio34/value;
sleep 0.5;
echo 0 > /sys/class/gpio/gpio34/value;
sleep 0.5;
done
# boot complete
(
echo "Disabling ACT LED..."
echo "none" > /sys/class/leds/work/trigger &
sleep 1
# blink successful boot code
for i in $(seq 1 5); do
echo 1 > /sys/class/gpio/gpio34/value;
sleep 0.5;
echo 0 > /sys/class/gpio/gpio34/value;
sleep 0.5;
done
)
echo "Boot complete."
) &
exit 0
exit 0

View file

@ -0,0 +1 @@
0.94a

View file

@ -29,10 +29,12 @@ if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
fi
[ -r /etc/lsb-release ] && . /etc/lsb-release
foxbuntu_version=$(cat /etc/foxbuntu-release)
spaces=$((9 - ${#foxbuntu_version}))
#printf "\n"
printf " %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"
printf " Meshtastic is a registered trademark of Meshtastic LLC.\n"
# Print the result with the appropriate number of spaces
printf " Foxbuntu v$foxbuntu_version%*s%s(%s)\n" $spaces "" "$DISTRIB_DESCRIPTION" "$(uname -r)"
printf " Meshtastic is a registered trademark of Meshtastic LLC.\n"
printf " Meshtastic software components are released under various licenses,\n"
printf " see GitHub for details. No warranty is provided - use at your own risk.\n"
printf " Luckfox: wiki.luckfox.com This image built by github.com/noon92/femtofox\n"