ifname=eth0
insmod diag
+ insmod hwmon
+ insmod pps_core
+ insmod ptp
+ insmod tg3
+ insmod b44
+ insmod bgmac
# hardware specific overrides
case "$(cat /proc/diag/model)" in
insmod "$module" "$params"
sleep 1
- grep "^$module" /proc/modules > /dev/null
+ grep -q ^"$module " /proc/modules
return $?
}
init_iface() {
- check_module hwmon
- check_module tg3
insmod switch-core
check_module switch-robo || check_module switch-adm || {
check_module bcm57xx activate_gpio=0x4 && cpu_port="8u*"