~ubuntu-branches/ubuntu/maverick/ltspfs/maverick

« back to all changes in this revision

Viewing changes to scripts/xinitrc.d/I10-delayedmounter

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Graber
  • Date: 2009-03-09 11:06:13 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090309110613-ql1crsu7n730it1t
Tags: 0.5.10-0ubuntu1
* New upstream version (0.5.10):
 * Code cleanup
 * Fix localdevices with recent udev (LP: #335767)
 * Fix ltspfsmounter for localapps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Run delayed-mounter if LOCALDEV is enabled (ie /var/run/ltspfs_fstab exists)
 
2
#
 
3
# This is delayed mounter for non-ldm sessions
 
4
#
2
5
if [ -f /var/run/ltspfs_fstab ] && [ -x /usr/sbin/ltspfsmounter ]; then
3
 
    # Delayed-mounter
4
 
    unset SSH_CONNECTION
5
 
    export USER=root
6
 
    /usr/sbin/ltspfsmounter all cleanup 
7
 
    while read DEV DIR TYPE OPTIONS DUMP PASS; do
8
 
        /usr/sbin/ltspfsmounter ${DIR} add
9
 
    done < /var/run/ltspfs_fstab
 
6
    # COMMAND will be exported by xinitrc, but in case xinitrc is an
 
7
    # older version, let's look at screens 1 and 7 for ldm*
 
8
    [ -z "$COMMAND" ] && COMMAND="${SCREEN_01}${SCREEN_07}"
 
9
    case "$COMMAND" in 
 
10
        ldm*) ;;
 
11
        *)
 
12
            # Delayed-mounter
 
13
            unset SSH_CONNECTION
 
14
        
 
15
            /usr/sbin/ltspfsmounter all cleanup 
 
16
        
 
17
            while read DEV DIR TYPE OPTIONS DUMP PASS; do
 
18
                /usr/sbin/ltspfsmounter ${DIR} add
 
19
            done < /var/run/ltspfs_fstab
 
20
        ;;
 
21
    esac
10
22
fi
11
23