0
Gianni Romano

Start a script when an interface is up

Recommended Posts

Thank you so much, although it doesn't seem to trigger my script. This is my script with +x located in dispatcher.d:

if [ "$IF" == "eth0" ]; then
        case "$2" in
                up)
                ~/scripts/start_check.sh
                ;;
        esac
fi;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0