init
This commit is contained in:
18
init.d/network
Executable file
18
init.d/network
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
}
|
Reference in New Issue
Block a user