~chessy/live-build/live-helper.chessy

« back to all changes in this revision

Viewing changes to examples/hooks/all_chroot_hal-automount.sh

  • Committer: Cody A.W. Somerville
  • Date: 2009-12-17 15:47:33 UTC
  • mfrom: (990.1.113)
  • Revision ID: cody.somerville@canonical.com-20091217154733-s399e2926ouoj5j6
Merge in live-helper 1.0.6-1 from Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# This is a hook for live-helper(7) to enable automaunting with hal for block devices.
 
4
#
 
5
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
 
6
# directory.
 
7
 
 
8
# Remove automount disabling
 
9
rm -f /usr/share/hal/fdi/policy/10osvendor/debian-storage-policy-fixed-drives.fdi
 
10
 
 
11
# Use ntfs-3g by default to mount ntfs partitions
 
12
if [ -x /usr/bin/ntfs-3g ]
 
13
then
 
14
        rm -f /sbin/mount.ntfs
 
15
        ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs
 
16
fi