wok-6.x rev 11676
usbutils: lsusb display usb.ids
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sat Feb 18 02:48:33 2012 +0000 (2012-02-18) |
parents | 4da8cad96f76 |
children | 1a734f9c5581 |
files | usbutils/receipt |
line diff
1.1 --- a/usbutils/receipt Sat Feb 18 09:21:57 2012 +0100 1.2 +++ b/usbutils/receipt Sat Feb 18 02:48:33 2012 +0000 1.3 @@ -31,9 +31,26 @@ 1.4 genpkg_rules() 1.5 { 1.6 mkdir -p $fs/usr 1.7 - # We have lsusb in Busybox 1.8 cp -a $_pkg/usr/bin $fs/usr 1.9 - rm $fs/usr/bin/lsusb* 1.10 cp -a $_pkg/usr/sbin $fs/usr 1.11 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices 1.12 } 1.13 + 1.14 +# Pre and post install commands for Tazpkg. 1.15 +# Busybox lsusb does not display human-readable usb.ids hardware info. 1.16 +# We must remove busybox lsusb symlink before installing. 1.17 +# 1.18 +pre_install() 1.19 +{ 1.20 + local root 1.21 + root=$1 1.22 + echo "Processing pre-install commands..." 1.23 + echo -n "Removing Busybox lsusb... " 1.24 + rm -f $root/usr/bin/lsusb 1.25 + status 1.26 +} 1.27 + 1.28 +post_remove() 1.29 +{ 1.30 + ln -s /bin/busybox $1/usr/bin/lsusb 1.31 +}