| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # executed when service is taken down ("svc -d .") |
| 3 | |
| 4 | service=${PWD##*/} |
| 5 | file_ipconf="$service.ipconf" |
| 6 | file_ntpconf="$service.ntpconf" |
| 7 | dir_ipconf="/var/run/service/fwscip-shell filesystem . . `/var/run/service/fw`." |
| 8 | dir_ntpconf="/var/run/service/ntpdscip-shell filesystem . . `/var/run/service/ntpd`." |
| 9 | |
| 10 | # Reconfigure network with this interface disabled |
| 11 | echoscip-shell system . . echo. "Finish: deconfiguring" |
| 12 | rmscip-shell system . . rm. "env.out" |
| 13 | rmscip-shell system . . rm. "$file_ipconf" |
| 14 | rmscip-shell system . . rm. "$file_ntpconf" |
| 15 | rmscip-shell system . . rm. "$dir_ipconf/$file_ipconf" |
| 16 | rmscip-shell system . . rm. "$dir_ntpconf/$file_ntpconf" |
| 17 | svc -u fw |