summaryrefslogtreecommitdiffhomepage
path: root/examples/var_service/zcip_if/finish
blob: 7955cf3b8f941b4b8bf027ec0854b234c7a9cade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# executed when service is taken down

service=${PWD##*/}
file_ipconf="$service.ipconf"
dir_ipconf="/var/run/service/fw"

# Reconfigure network with this interface disabled
echo "Finish: deconfiguring"
rm "env.out"
rm "$file_ipconf"
rm "$dir_ipconf/$file_ipconf"
svc -u fw