~ubuntu-branches/ubuntu/edgy/ltspfs/edgy

« back to all changes in this revision

Viewing changes to debian/ltspfs.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Scott Balneaves
  • Date: 2006-09-18 13:01:06 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060918130106-ns6gmg2kl0oic3h6
Tags: 0.4.3-0ubuntu1
* Fixed variable check for static-devices in add_fstab_entry
* Bumped to 0.4.3
* UVF exception granted by mdz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postinst script for ltspfs
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <postinst> `configure' <most-recently-configured-version>
 
10
#        * <old-postinst> `abort-upgrade' <new version>
 
11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 
12
#          <new-version>
 
13
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 
14
#          <failed-install-package> <version> `removing'
 
15
#          <conflicting-package> <version>
 
16
# for details, see http://www.debian.org/doc/debian-policy/ or
 
17
# the debian-policy package
 
18
#
 
19
 
 
20
case "$1" in
 
21
    configure)
 
22
        grep fuse /etc/modules > /dev/null 2>&1
 
23
        if [ $? -eq 1 ]; then
 
24
            echo "fuse" >> /etc/modules
 
25
        fi
 
26
        lsmod | grep fuse > /dev/null 2>&1
 
27
        if [ $? -eq 1 ]; then
 
28
            modprobe fuse
 
29
        fi
 
30
 
 
31
        chmod 4755 /usr/bin/lbmount
 
32
    ;;
 
33
 
 
34
    abort-upgrade|abort-remove|abort-deconfigure)
 
35
 
 
36
    ;;
 
37
 
 
38
    *)
 
39
        echo "postinst called with unknown argument \`$1'" >&2
 
40
        exit 1
 
41
    ;;
 
42
esac
 
43
 
 
44
# dh_installdeb will replace this with shell code automatically
 
45
# generated by other debhelper scripts.
 
46
 
 
47
#DEBHELPER#
 
48
 
 
49
exit 0