blob: 95995cf5f1c9fe93783b4270dab8ded5f321ac4d [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"
6dir_ipconf="/var/run/service/fw"
7
8# Reconfigure network with this interface disabled
9echo "Finish: deconfiguring"
10rm "env.out"
11rm "$file_ipconf"
12rm "$dir_ipconf/$file_ipconf"
13sv u /var/service/fw