Skip to content

Commit

Permalink
Add debug information for network issues
Browse files Browse the repository at this point in the history
Resolves FOGProject#42
  • Loading branch information
rluzuriaga committed Jul 30, 2023
1 parent 8abc49d commit 1172d82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ if [[ -z "$(echo $ifaces | tr -d ' ')" ]]; then # because ifaces is constructed
else
echo "Failed to get an IP via DHCP! Tried on interface(s): $ifaces"
fi
initversion=$(cat /usr/share/fog/lib/funcs.sh | awk -F "=" '/export initversion=/{gsub(/"/,""); iv=$NF; print iv}')
echo "Please check your network setup and try again!"
echo "Debug information:"
echo " Kernel Version: $(uname -r)"
echo " Init Version: $initversion"
echo " Network Adapter:"
echo $(lshw -c network -businfo)
[[ -z $isdebug ]] && sleep 60 && reboot
echo "Press enter to continue"
read -t 60
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export initversion=19800101
export initversion="2022.02.9"
. /usr/share/fog/lib/partition-funcs.sh
REG_LOCAL_MACHINE_XP="/ntfs/WINDOWS/system32/config/system"
REG_LOCAL_MACHINE_7="/ntfs/Windows/System32/config/SYSTEM"
Expand Down Expand Up @@ -45,7 +45,8 @@ displayBanner() {
echo " =================================="
echo " == Released under GPL Version 3 =="
echo " =================================="
echo " Version: $version"
echo " FOG Version: $version"
echo " Kernel Version: $(uname -r)"
echo " Init Version: $initversion"
}
# Gets all system mac addresses except for loopback
Expand Down

0 comments on commit 1172d82

Please sign in to comment.