Hi Michael, On Saturday 07 Mar 2009 00:45:03 Michael Biebl wrote: > Could you find out, why 01ifupdown has failed. Seems working as *Badly* designed. The script is passed an action (vpn-up) which falls under the no-match section, where 1 is returned explicitly.
Probably, we need a:
vpn-up)
echo "VPN - Doing nothing"
r...@champaran:/tmp$ cat NetworkManager.log
echo $1
+ echo tun0
tun0
echo $2
+ echo vpn-up
vpn-up
echo $3
+ echo
if [ -z "$1" ]; then
echo "$0: called with no interface" 1>&2
exit 1;
fi
+ [ -z tun0 ]
# Fake ifupdown environment
export IFACE="$1"
+ export IFACE=tun0
export LOGICAL="$1"
+ export LOGICAL=tun0
export ADDRFAM="NetworkManager"
+ export ADDRFAM=NetworkManager
export METHOD="NetworkManager"
+ export METHOD=NetworkManager
export VERBOSITY="0"
+ export VERBOSITY=0
# Run the right scripts
case "$2" in
up)
export MODE="start"
export PHASE="post-up"
exec run-parts /etc/network/if-up.d
;;
down)
export MODE="stop"
export PHASE="pre-down"
exec run-parts /etc/network/if-down.d
;;
pre-up)
export MODE="start"
export PHASE="pre-up"
exec run-parts /etc/network/if-pre-up.d
;;
post-down)
export MODE="stop"
export PHASE="post-down"
exec run-parts /etc/network/if-post-down.d
;;
*)
echo "$0: called with unknown action \`$2'" 1>&2
exit 1
;;
esac
+ echo /tmp/01ifupdown: called with unknown action `vpn-up'
/tmp/01ifupdown: called with unknown action `vpn-up'
+ exit 1
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
signature.asc
Description: This is a digitally signed message part.

