File: postrm

package info (click to toggle)
wanpipe 2.1.1-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,348 kB
  • ctags: 713
  • sloc: ansic: 6,182; sh: 2,522; cpp: 2,488; makefile: 116
file content (38 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/ksh
#
# wanpipe postrm
############################################
set -o errexit

case $1 in
   purge)
      # remove init.d links
      update-rc.d wanpipe remove >/dev/null

      # remove logfile(s)
      rm -f /var/log/wanpipe*
  
      # remove interface conf scripts
      rm -rf /etc/wanpipe
      ;;

   remove)
      :
      ;;
   
   abort-upgrade)
      # error unwind
      :
      ;;
      
   abort-install)
      # error unwind
      :
      ;;

   *)
      :
      ;;
esac

exit 0