You are not logged in.

#1 2013-05-18 20:27:06

kaipee
Member
From: Belfast, UK
Registered: 2012-07-07
Posts: 214

NetworkManager dispatcher.d script not working

Hi guys,

I have issues making my NFS share mount during boot (laptop and desktop), so I am using a NetworkManager dispatcher.d script to automate mounting when network is connected.

On my desktop (wired) the script works perfectly.
On my laptop (wireless) it does not.

Here is the script:

#!/bin/sh

if [ "$2" = "up" ]
then
        mount "/mnt/Files"
elif [ "$2" = "down" ]
then
        umount "/mnt/Files"
fi

Here is the error

NetworkManager[251]: <warn> Dispatcher script failed: Script '/etc/NetworkManager/dispatcher.d/nfs.sh' exited with error status 32.

Offline

#2 2013-05-18 20:31:40

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: NetworkManager dispatcher.d script not working

man mount wrote:

RETURN CODES
       mount has the following return codes (the bits can be ORed):

       [...]
             
       32     mount failure

Does /mnt/Files exist on your laptop, and do you have the same entry for it in /etc/fstab as on your desktop?

Last edited by Raynman (2013-05-18 20:34:11)

Offline

#3 2013-05-18 21:24:54

kaipee
Member
From: Belfast, UK
Registered: 2012-07-07
Posts: 214

Re: NetworkManager dispatcher.d script not working

Hi Raynman,

Yes they work fine. If I manually mount (mount /mnt/Files) in terminal it works fine.

Offline

Board footer

Powered by FluxBB