Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug information for network issues #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) | sed 's/^/ /'
[[ -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