File: prerm

package info (click to toggle)
motion 3.2.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,152 kB
  • ctags: 1,688
  • sloc: ansic: 16,212; sh: 345; makefile: 209
file content (34 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

case "$1" in

    remove|remove-in-favour|deconfigure|deconfigure-in-favour)

        if [ -x /etc/init.d/motion ]; then
            if [ -x /usr/sbin/invoke-rc.d ] ; then
                   invoke-rc.d motion stop
            else   
                   /etc/init.d/motion stop
            fi
        fi

    ;;

    upgrade|failed-upgrade)

    ;;

    *)

        echo "prerm called with unknown argument \`$1'" >&2
        exit 1

    ;;

esac

#DEBHELPER#

exit 0