Denys Vlasenko | 4f8ecf2 | 2015-10-24 14:55:33 +0200 | [diff] [blame] | 1 | #!/bin/sh |
Denys Vlasenko | aa75a7d | 2018-07-03 17:02:50 +0200 | [diff] [blame] | 2 | # executed when service is taken down |
Denys Vlasenko | 4f8ecf2 | 2015-10-24 14:55:33 +0200 | [diff] [blame] | 3 | |
| 4 | service=${PWD##*/} |
| 5 | file_ipconf="$service.ipconf" |
| 6 | dir_ipconf="/var/run/service/fw" |
| 7 | |
| 8 | # Reconfigure network with this interface disabled |
| 9 | echo "Finish: deconfiguring" |
| 10 | rm "env.out" |
| 11 | rm "$file_ipconf" |
| 12 | rm "$dir_ipconf/$file_ipconf" |
Denys Vlasenko | aa75a7d | 2018-07-03 17:02:50 +0200 | [diff] [blame] | 13 | svc -u fw |