blob: 5e7667a2d672fa7eba07415bf4bb7a8b6c6925da [file] [log] [blame]
Denys Vlasenko4f8ecf22015-10-24 14:55:33 +02001#!/bin/sh
2# executed when service is taken down ("sv d .")
3
4service=${PWD##*/}
5file_ipconf="$service.ipconf"
6file_ntpconf="$service.ntpconf"
7dir_ipconf="/var/run/service/fw"
8dir_ntpconf="/var/run/service/ntpd"
9
10# Reconfigure network with this interface disabled
11echo "Finish: deconfiguring"
12rm "env.out"
13rm "$file_ipconf"
14rm "$file_ntpconf"
15rm "$dir_ipconf/$file_ipconf"
16rm "$dir_ntpconf/$file_ntpconf"
17sv u /var/service/fw