-function net_init_failed() {
- echo
- echo $(date "+%H:%M:%S") " pl_netinit: network initialization failed with interface $ETH_DEVICE"
- echo
- echo For forensics
- echo
- echo ========== lspci beg
- /sbin/lspci -n | /bin/grep "Class 0200"
- echo ========== lspci end
- echo
- echo ========== ifconfig beg
- /sbin/ifconfig
- echo ========== ifconfig end
- echo ========== ip address show beg
- ip address show
- echo ========== ip address show end
- echo
- echo $(date "+%H:%M:%S") " pl_netinit: network initialization failed with interface $ETH_DEVICE"
- echo $(date "+%H:%M:%S") " pl_netinit: shutting down machine in two hours"
- /bin/sleep 2h
- /sbin/shutdown -h now
+function net-init-failed() {
+ verbose-message "pl_netinit: network initialization failed with interface $ETH_DEVICE"
+ verbose-forensics "failed to configure $ETH_DEVICE"
+ hang-and-shutdown "net-init-failed"