Skip to content
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
10 changes: 10 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 @@ -88,6 +88,16 @@ else
echo "Failed to get an IP via DHCP! Tried on interface(s): $ifaces"
fi
echo "Please check your network setup and try again!"
initversion=$(awk -F= '/^export initversion=/{print $2}' /usr/share/fog/lib/funcs.sh)
netpci=$(lspci -nn 2>/dev/null | grep -iE '(ethernet|network) controller')
[[ -z $netpci ]] && netpci="(no PCI network hardware detected)"
echo "Debug information (please include this when reporting network issues):"
echo " Kernel version: $(uname -r)"
echo " Init version: $initversion"
echo " Network hardware on the PCI bus:"
echo "$netpci" | sed 's/^/ /'
echo " Network hardware seen by lshw:"
lshw -c network -businfo 2>/dev/null | 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
Expand Up @@ -47,6 +47,7 @@ displayBanner() {
echo " =================================="
echo " Version: $version"
echo " Init Version: $initversion"
echo " Kernel Version: $(uname -r)"
}
# Gets all system mac addresses except for loopback
#getMACAddresses() {
Expand Down
2 changes: 1 addition & 1 deletion configs/kernelarm64.config
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ CONFIG_BLK_DEV_PCIESSD_MTIP32XX=y
# CONFIG_ZRAM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
Expand Down
2 changes: 1 addition & 1 deletion configs/kernelx64.config
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ CONFIG_BLK_DEV_PCIESSD_MTIP32XX=y
# CONFIG_ZRAM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
Expand Down
2 changes: 1 addition & 1 deletion configs/kernelx86.config
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ CONFIG_BLK_DEV_PCIESSD_MTIP32XX=y
# CONFIG_ZRAM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
Expand Down