File: postrm

package info (click to toggle)
usbmount 0.0.21
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 100 kB
  • ctags: 2
  • sloc: sh: 189; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

# If the package is removed or installing is aborted, try to remove the
# default mountpoints. Failure to do so is not considered fatal.
if test "$1" = remove || test "$1" = abort-install; then
    rm -f /media/usb 2> /dev/null || :
    for i in 0 1 2 3 4 5 6 7; do
	rmdir /media/usb$i 2> /dev/null || :
    done
fi

# During purge, remove the /etc/udev/rules.d/z60_usbmount.rules symlink if it
# exists.
if test "$1" = purge; then
    if test -h /etc/udev/rules.d/z60_usbmount.rules; then
	rm -f /etc/udev/rules.d/z60_usbmount.rules
    fi
fi

#DEBHELPER#

exit 0