I have tested this and created the script /etc/network/if-pre-up.d/test with the content:
#!/bin/bash echo "$INTERFACE" >> /tmp/test.log 2>&1 After a reboot /tmp/test.log has just contained 3 empty lines. The variable $INTERFACE was not know at this point for the script. ** Changed in: ifupdown (Ubuntu) Status: Invalid => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1128403 Title: Passing the network device as argument to the scripts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1128403/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs