network: do not fail when eth0 doesn't exists

It can be perfectly right case for wireless-only netvm.
This commit is contained in:
Marek Marczykowski 2013-04-29 02:48:18 +02:00 committed by Marek Marczykowski-Górecki
parent 8c9433fc00
commit 596a3ebd8e

View File

@ -11,5 +11,5 @@ if [ "x$network" != "x" ]; then
echo "NS2=$secondary_dns" >> /var/run/qubes/qubes-ns
/usr/lib/qubes/qubes-setup-dnat-to-ns
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/ethtool -K eth0 sg off
/sbin/ethtool -K eth0 sg off || :
fi