summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-05-25 18:39:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-05-25 18:39:06 -0700
commit144778465c780a56220bc8e68aa880ddd1149ddb (patch)
treeb358cd961ab3a0a29c117783c613f8b068e33aef /templates
parente94b5b278492afe5d15921c3d907718966bad26b (diff)
downloadvyatta-cfg-system-144778465c780a56220bc8e68aa880ddd1149ddb.tar.gz
vyatta-cfg-system-144778465c780a56220bc8e68aa880ddd1149ddb.zip
Use capability for modprobe
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.def2
-rw-r--r--templates/interfaces/input/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.def b/templates/interfaces/bonding/node.def
index 9e27ebad..e55b9ee7 100644
--- a/templates/interfaces/bonding/node.def
+++ b/templates/interfaces/bonding/node.def
@@ -6,7 +6,7 @@ comp_help: Enter bonding interface name (bond0 - bond99)
syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \
; "bonding must be (bond0-bond99)"
begin: if [ ! -f /sys/class/net/bonding_masters ]; then
- sudo modprobe bonding max_bonds=0 miimon=250
+ /sbin/modprobe bonding max_bonds=0 miimon=250
fi
create: sudo sh -c "echo +$VAR(@) > /sys/class/net/bonding_masters" || exit 1
sudo ip link set "$VAR(@)" up
diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def
index b90cb0b3..002f5305 100644
--- a/templates/interfaces/input/node.def
+++ b/templates/interfaces/input/node.def
@@ -6,6 +6,6 @@ comp_help: Enter input functional block interface name (ifb0 - ifb999)
syntax:expression: pattern $VAR(@) "^ifb[0-9]+$" ; "name must be (ifb0-ifb999)"
-begin: [ -d /sys/module/ifb ] || sudo modprobe ifb numifbs=0
+begin: [ -d /sys/module/ifb ] || /sbin/modprobe ifb numifbs=0
create: sudo ip link add $VAR(@) type ifb && sudo ip link set $VAR(@) up
delete: sudo ip link delete dev $VAR(@)