You are not logged in.

#1 2009-11-17 20:47:35

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[netcfg] question about commands before/after interface up/dow

Hello guys,

I set some commands in my profile to be started when the profile is going to be used. Here the relevant part.

PRE_UP="ifconfig wlan0 down;ifconfig wlan0 up"
POST_UP="sleep 5; sshfs -p 2282 server: /mnt/server 2>/dev/null;"

I set the PRE_UP because sometimes I had to shutdown/restart my interface before I could connect successfully. So I thought this would be enough. The strange thing I don't understand, sometimes it's working but sometimes I still have to do it manually after startup.

The second problem is the POST_UP command. I could mount my server manually without any problems via sshfs, but in combination with netcfg nothing is happening. Why that?

Thank your for any hint.

Offline

Board footer

Powered by FluxBB