make all executor scripts testable/mockable

This commit is contained in:
Ariadne Conill 2020-07-26 03:26:11 -06:00
parent 12307aeb9d
commit 05e8f9bbb5
2 changed files with 14 additions and 12 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh
start() {
echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
${MOCK} echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
}
stop() {
echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
${MOCK} echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
}
[ -z "$VERBOSE" ] || set -x