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.
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.