Alessio Caiazza committed fa42b58

Allow the user to specify the ethernet device on command line

If no option are given gsconf will use eth0 as before, but if there's a
parameter on the command line than the first one will be used as device name

Comments (0)

Files changed (1)

-int main () {
+int main (int argc, char** argv) {
         int n;
-        myMac = get_mac("eth0");
+        char* device = "eth0";
+        if(argc > 1)
+                device = argv[1];
+        myMac = get_mac(device);