summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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(@)