# HG changeset patch # User Pascal Bellard # Date 1233491801 0 # Node ID 532538d67b1c3b225f0663e170ea505339ffc493 # Parent 14a7a851672ff8ab5326f52f7650cea787deee25 linux-*fs, squashfs : update /etc/filesystems diff -r 14a7a851672f -r 532538d67b1c linux-cifs/receipt --- a/linux-cifs/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/linux-cifs/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -26,11 +26,13 @@ # Post install/remove commands for Tazpkg. post_install() { + grep -qs ^cifs$ $1/etc/filesystems || \ + echo "cifs" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { + sed -i '/^cifs$/d' $1/etc/filesystems depmod -a $VERSION-slitaz } - diff -r 14a7a851672f -r 532538d67b1c linux-jfs/receipt --- a/linux-jfs/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/linux-jfs/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -26,11 +26,13 @@ # Post install/remove commands for Tazpkg. post_install() { + grep -qs ^jfs$ $1/etc/filesystems || \ + echo "jfs" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { + sed -i '/^jfs$/d' $1/etc/filesystems depmod -a $VERSION-slitaz } - diff -r 14a7a851672f -r 532538d67b1c linux-ncpfs/receipt --- a/linux-ncpfs/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/linux-ncpfs/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -26,11 +26,13 @@ # Post install/remove commands for Tazpkg. post_install() { + grep -qs ^ncpfs$ $1/etc/filesystems || \ + echo "ncpfs" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { + sed -i '/^ncpfs$/d' $1/etc/filesystems depmod -a $VERSION-slitaz } - diff -r 14a7a851672f -r 532538d67b1c linux-reiserfs/receipt --- a/linux-reiserfs/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/linux-reiserfs/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -26,11 +26,13 @@ # Post install/remove commands for Tazpkg. post_install() { + grep -qs ^reiserfs$ $1/etc/filesystems || \ + echo "reiserfs" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { + sed -i '/^reiserfs$/d' $1/etc/filesystems depmod -a $VERSION-slitaz } - diff -r 14a7a851672f -r 532538d67b1c ntfs-3g/receipt --- a/ntfs-3g/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/ntfs-3g/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -34,11 +34,11 @@ # Pre remove and post install commands for Tazpkg. pre_remove() { - sed -i '/ntfs-3g/d' $1/etc/filesystems + sed -i '/^ntfs-3g$/d' $1/etc/filesystems } post_install() { - grep -qs ntfs-3g $1/etc/filesystems || \ + grep -qs ^ntfs-3g$ $1/etc/filesystems || \ echo "ntfs-3g" >> $1/etc/filesystems } diff -r 14a7a851672f -r 532538d67b1c squashfs/receipt --- a/squashfs/receipt Sun Feb 01 12:23:00 2009 +0000 +++ b/squashfs/receipt Sun Feb 01 12:36:41 2009 +0000 @@ -177,3 +177,15 @@ { cp -a $_pkg/usr $_pkg/sbin $fs } + +# Pre remove and post install commands for Tazpkg. +pre_remove() +{ + sed -i '/^squashfs$/d' $1/etc/filesystems +} + +post_install() +{ + grep -qs ^squashfs$ $1/etc/filesystems || \ + echo "squashfs" >> $1/etc/filesystems +}