blob: bbfd7d9bb30cc096f2565dde15447137c358a010 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
#
if [ X"$IFACE" == "Xeth0" ] ; then
nfsroot=`grep ' / nfs ' /proc/mounts`
if [ -n "$nfsroot" ]; then
echo "WARNING: Refusing to ifup eth0 when booted to a nfs-mounted rootfs."
exit 1
fi
fi
exit 0
|