add support for trisquel belanos
[automated-distro-installer] / fai / config / scripts / DEBIAN / 30-interface
index a962049c11120b3cc7f96cffcc74ef636a5351d2..e249b6746cd3f7d6eb893263a46922a96c761a80 100755 (executable)
@@ -5,9 +5,14 @@ error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
 
 if ! ifclass STABLE; then
     if ifclass VM; then
-        # For a vm, we only get  ID_NET_NAME_MAC from below,
-        # but when it reboots, it uses ID_NET_NAME_SLOT.
-        NIC1=ens3
+        # older distro still uses eth0
+        if ifclass BELENOS64; then
+            NIC1=eth0
+        else
+            # For a vm, we only get  ID_NET_NAME_MAC from below,
+            # but when it reboots, it uses ID_NET_NAME_SLOT.
+            NIC1=ens3
+        fi
     else
         # get persistent interface name. Note, these class conditions
         # will need to get modified for new oses. testing vm doesn't use