Magellan Linux

Diff of /trunk/qemu-networking/qemu-networking.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2201 by niro, Mon Oct 14 09:07:00 2013 UTC revision 2594 by niro, Tue Mar 4 10:12:48 2014 UTC
# Line 14  checkconfig() Line 14  checkconfig()
14   return 1   return 1
15   fi   fi
16    
17   if [ ! -x $(which iptables 2>/dev/null) ]   if [ ! -x $(type -P iptables) ]
18   then   then
19   logger -s -p daemon.err -t qemu-networking.service \   logger -s -p daemon.err -t qemu-networking.service \
20   "No 'iptables' executable found, please install 'net-misc/iptables'"   "No 'iptables' executable found, please install 'net-misc/iptables'"
21   return 1   return 1
22   fi   fi
23    
24   if [ ! -x $(which vde_switch 2>/dev/null) ]   if [ ! -x $(type -P vde_switch) ]
25   then   then
26   logger -s -p daemon.err -t qemu-networking.service \   logger -s -p daemon.err -t qemu-networking.service \
27   "No 'vde_switch' executable found, please install 'net-misc/vde2'"   "No 'vde_switch' executable found, please install 'net-misc/vde2'"
28   return 1   return 1
29   fi   fi
30    
31   if [ ! -x $(which sysctl 2>/dev/null) ]   if [ ! -x $(type -P sysctl) ]
32   then   then
33   logger -s -p daemon.err -t qemu-networking.service \   logger -s -p daemon.err -t qemu-networking.service \
34   "No 'sysctl' executable found, please install 'sys-apps/procps'"   "No 'sysctl' executable found, please install 'sys-apps/procps'"
# Line 59  case $1 in Line 59  case $1 in
59    
60   # destroy interface   # destroy interface
61   ifconfig ${TAPDEV} down   ifconfig ${TAPDEV} down
62   kill -15 $(< /var/run/vde-qemu.pid)   pgrep -f vde_switch | xargs --no-run-if-empty kill -TERM
63   ;;   ;;
64  esac  esac

Legend:
Removed from v.2201  
changed lines
  Added in v.2594