wok rev 5113

hal: rm bashism,update hal-functions path;add missing ntfs-3g hal policy
author Rohit Joshi <jozee@slitaz.org>
date Thu Mar 18 13:03:23 2010 +0000 (2010-03-18)
parents c66ad3e8adfb
children 34ab9276458a
files hal/receipt hal/stuff/policy/10osvendor/30-ntfs-write.fdi
line diff
     1.1 --- a/hal/receipt	Thu Mar 18 10:41:03 2010 +0000
     1.2 +++ b/hal/receipt	Thu Mar 18 13:03:23 2010 +0000
     1.3 @@ -74,6 +74,13 @@
     1.4  	rm $fs/usr/share/hal/fdi/policy/10osvendor/10-imac-backlight.fdi
     1.5  	rm $fs/usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi
     1.6  	rm $fs/usr/share/hal/fdi/policy/10osvendor/30-wol.fdi
     1.7 +	
     1.8 +	# change bash to sh in hal scripts
     1.9 +	sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/hal* 
    1.10 +	sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/linux/hal* 
    1.11 +	# use full-path
    1.12 +	sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/hal* 
    1.13 +	sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/linux/hal* 
    1.14  }
    1.15  
    1.16  pre_install()
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/hal/stuff/policy/10osvendor/30-ntfs-write.fdi	Thu Mar 18 13:03:23 2010 +0000
     2.3 @@ -0,0 +1,42 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<deviceinfo version="0.2">
     2.6 +  <device>
     2.7 +   	<match key="volume.fstype" string="ntfs">
     2.8 +        <append key="volume.fstype.alternative" type="copy_property">volume.fstype</append>
     2.9 +        <merge key="volume.mount.ntfs.valid_options" type="copy_property">volume.mount.valid_options</merge>
    2.10 +        <merge key="volume.unmount.ntfs.valid_options" type="copy_property">volume.unmount.valid_options</merge>
    2.11 +        <merge key="volume.fstype" type="string">ntfs-3g</merge>
    2.12 +       	<merge key="volume.mount.valid_options" type="strlist">ro</merge>
    2.13 +        <append key="volume.mount.valid_options" type="strlist">atime</append>
    2.14 +        <append key="volume.mount.valid_options" type="strlist">noatime</append>
    2.15 +       	<append key="volume.mount.valid_options" type="strlist">relatime</append>
    2.16 +       	<append key="volume.mount.valid_options" type="strlist">fake_rw</append>
    2.17 +       	<append key="volume.mount.valid_options" type="strlist">no_def_opts</append>
    2.18 +       	<append key="volume.mount.valid_options" type="strlist">default_permissions</append>
    2.19 +       	<append key="volume.mount.valid_options" type="strlist">umask=</append>
    2.20 +       	<append key="volume.mount.valid_options" type="strlist">fmask=</append>
    2.21 +       	<append key="volume.mount.valid_options" type="strlist">dmask=</append>
    2.22 +       	<append key="volume.mount.valid_options" type="strlist">uid=</append>
    2.23 +       	<append key="volume.mount.valid_options" type="strlist">gid=</append>
    2.24 +      	<append key="volume.mount.valid_options" type="strlist">show_sys_files</append>
    2.25 +       	<append key="volume.mount.valid_options" type="strlist">silent</append>
    2.26 +       	<append key="volume.mount.valid_options" type="strlist">force</append>
    2.27 +       	<append key="volume.mount.valid_options" type="strlist">remove_hiberfile</append>
    2.28 +       	<append key="volume.mount.valid_options" type="strlist">locale=</append>
    2.29 +       	<append key="volume.mount.valid_options" type="strlist">streams_interface=</append>
    2.30 +       	<append key="volume.mount.valid_options" type="strlist">debug</append>
    2.31 +       	<append key="volume.mount.valid_options" type="strlist">no_detatch</append>
    2.32 +       	<append key="volume.mount.valid_options" type="strlist">sync</append>
    2.33 +       	<append key="volume.mount.valid_options" type="strlist">dirsync</append>
    2.34 +       	<append key="volume.mount.valid_options" type="strlist">nodiratime</append>
    2.35 +       	<append key="volume.mount.valid_options" type="strlist">noexec</append>
    2.36 +        <append key="volume.mount.valid_options" type="strlist">quiet</append>
    2.37 +       	<append key="volume.mount.valid_options" type="strlist">remount</append>
    2.38 +       	<append key="volume.mount.valid_options" type="strlist">exec</append>
    2.39 +       	<append key="volume.mount.valid_options" type="strlist">recover</append>
    2.40 +       	<append key="volume.mount.valid_options" type="strlist">norecover</append>
    2.41 +       	<merge key="volume.unmount.valid_options" type="strlist">lazy</merge>
    2.42 +       	<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
    2.43 +	</match>
    2.44 +  </device>
    2.45 +</deviceinfo>