# HG changeset patch # User Christopher Rogers # Date 1292832427 0 # Node ID 917ae5062e8a121f503ab3fb1927bf0da9c3f802 # Parent 5b1450e90bf6b4b9a3fb2ca65b1fa40f742265ee Added pre_install and post_remove to hd2u. diff -r 5b1450e90bf6 -r 917ae5062e8a hd2u/receipt --- a/hd2u/receipt Mon Dec 20 14:58:13 2010 +0100 +++ b/hd2u/receipt Mon Dec 20 08:07:07 2010 +0000 @@ -30,3 +30,20 @@ cp -a $_pkg/usr/bin $fs/usr } +# Pre and post install commands for Tazpkg. +# We must remove all Busybox symlink before installing. +# +pre_install() +{ + local root + root=$1 + echo "Processing pre-install commands..." + echo -n "Removing all Busybox replaced utils... " + rm -f $root/usr/bin/dos2unix + status +} + +post_remove() +{ + ln -s /bin/busybox /usr/bin/dos2unix +} \ No newline at end of file