File: postinst

package info (click to toggle)
usbmount 0.0.14.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 84 kB
  • ctags: 2
  • sloc: sh: 228; makefile: 1
file content (17 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

# If /etc/usbmount/.create_rules_symlink exists when the package is
# configured, create /etc/udev/rules.d/z60_usbmount.rules ->
# ../usbmount.rules symlink unless /etc/udev/rules.d/z60_usbmount.rules
# already exists.
if test "$1" = configure && test -f /etc/usbmount/.create_rules_symlink; then
    if ! test -e /etc/udev/rules.d/z60_usbmount.rules; then
	ln -s ../usbmount.rules /etc/udev/rules.d/z60_usbmount.rules
    fi
    rm -f /etc/usbmount/.create_rules_symlink
fi

#DEBHELPER#

exit 0