ssm-services/init.d/network
2013-09-29 03:32:39 +04:00

19 lines
333 B
Plaintext
Executable File

#!/usr/bin/env watchman
service_type='oneshot'
start() {
watchman.msg "Activating the loopback interface (lo)..."
ip link set lo up
}
stop() {
watchman.status || {
watchman.err "$service_name is already disabled"
return 1
}
watchman.msg "Deactivating the loopback interface (lo)..."
ip link set lo down
watchman.stop
}