pkgsrc/sysutils/xentools20/patches/patch-ay
2006-10-15 22:54:26 +00:00

40 lines
1 KiB
Text

$NetBSD: patch-ay,v 1.1 2006/10/15 23:34:02 seb Exp $
--- vnet/examples/network-vnet.orig 2005-08-03 23:57:58.000000000 +0000
+++ vnet/examples/network-vnet
@@ -154,7 +154,7 @@ vnet_insert () {
break
fi
done
- if [ "${mod_obj}" == "" ] ; then
+ if [ "${mod_obj}" = "" ] ; then
return
fi
if lsmod | grep -q ${module} ; then
@@ -166,7 +166,7 @@ vnet_insert () {
}
op_start () {
- if [ "${bridge}" == "null" ] ; then
+ if [ "${bridge}" = "null" ] ; then
return
fi
# Create the bridge and give it the interface IP addresses.
@@ -179,7 +179,7 @@ op_start () {
brctl addif ${bridge} ${netdev}
fi
- if [ ${antispoof} == 'yes' ] ; then
+ if [ ${antispoof} = 'yes' ] ; then
antispoofing ${netdev} ${bridge}
fi
@@ -187,7 +187,7 @@ op_start () {
}
op_stop () {
- if [ "${bridge}" == "null" ] ; then
+ if [ "${bridge}" = "null" ] ; then
return
fi
# Remove the interface from the bridge.