wok rev 2126
ntfs-3g: update /etc/filesystems
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 01 12:23:00 2009 +0000 (2009-02-01) |
parents | 2093d8f83439 |
children | 532538d67b1c |
files | ntfs-3g/receipt |
line diff
1.1 --- a/ntfs-3g/receipt Sun Feb 01 10:41:34 2009 +0000 1.2 +++ b/ntfs-3g/receipt Sun Feb 01 12:23:00 2009 +0000 1.3 @@ -30,3 +30,15 @@ 1.4 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.5 cp -a $_pkg/usr/bin $fs/usr 1.6 } 1.7 + 1.8 +# Pre remove and post install commands for Tazpkg. 1.9 +pre_remove() 1.10 +{ 1.11 + sed -i '/ntfs-3g/d' $1/etc/filesystems 1.12 +} 1.13 + 1.14 +post_install() 1.15 +{ 1.16 + grep -qs ntfs-3g $1/etc/filesystems || \ 1.17 + echo "ntfs-3g" >> $1/etc/filesystems 1.18 +}