Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NetworkManger dispatcher problem

Featured Replies

Hi all,

I am trying to have a script running when eth0 i s up, but it seems that I don't get it. Although I followed a guide and set anything, NM is not triggering my script.

So I have created my script without sh extension and called it 90-start-script in /etc/NetworkManager/dispatcher.d:

logger -s "I DON'T SEE THIS"
if [ "$1" == "eth0" ]; then
        case "$2" in
                up)
                ~/scripts/start_check.sh
                ;;
        esac
fi;

I gave it root ownership, execution flag, but it seems to be not working...

 

I followed this guide: https://wiki.archlinux.org/index.php/NetworkManager#Network_services_with_NetworkManager_dispatcher

 

I am running armbian 5.60 (strech)

 

Thanks

 

Did you take a look into /etc/NetworkManager/dispatcher.d directory to see how the other scripts do?

For example, I see that you miss the shebang at the very first lines of your script.

 

edit: also check the double equal (==) in the if statement. If I remember well, there should be a single equal there.

  • Author

I have checked already the other scripts but they are really different from what I have...I have seen many example, who is using the single = who ==

anyway I tried all combinations...it also has the first line #!/bin/bash that I have just skipped.

The strange thing is that not even the first line of code is executed, only when I restart NetworkManager!

 

Thanks for the reply

Gianni

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.