# HG changeset patch # User Pascal Bellard # Date 1569245405 -7200 # Node ID c1eb003410dc5474617d926dd054809361f59e62 # Parent d310b6c488c09baedd20715176d0e923445d9672 busybox: add command_not_found diff -r d310b6c488c0 -r c1eb003410dc busybox/receipt --- a/busybox/receipt Thu Sep 19 16:26:43 2019 +0100 +++ b/busybox/receipt Mon Sep 23 15:30:05 2019 +0200 @@ -167,6 +167,7 @@ rm -f $fs/bin/bbconfig $fs/usr/bin/ar mkdir -p $fs/etc/init.d $fs/var/spool/cron/crontabs $fs/var/spool/lpd \ $fs/var/lib/misc + cp $stuff/command_not_found $fs/bin # Busybox config files. for f in busybox.conf dnsd.conf udhcpd.conf inetd.conf httpd.conf \ diff -r d310b6c488c0 -r c1eb003410dc busybox/stuff/command_not_found --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/busybox/stuff/command_not_found Mon Sep 23 15:30:05 2019 +0200 @@ -0,0 +1,26 @@ +#!/bin/sh + +ZLIST=/var/lib/tazpkg/files.list.lzma +LIST=/tmp/command-list + +lookup() +{ + grep -s "/$2$1$" $LIST | while read pkg file; do + cat < $LIST +fi +MSG="$(lookup "$1")" +[ "$MSG" ] || MSG="$(lookup "$1" get-)" +[ "$MSG" ] || MSG="${SHELL##*/}: $1: not found" +echo "$MSG" diff -r d310b6c488c0 -r c1eb003410dc hfsprescue/receipt --- a/hfsprescue/receipt Thu Sep 19 16:26:43 2019 +0100 +++ b/hfsprescue/receipt Mon Sep 23 15:30:05 2019 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="hfsprescue" -VERSION="1.1" +VERSION="3.4" CATEGORY="base-system" SHORT_DESC="HFS+ recovery tool." MAINTAINER="pascal.bellard@slitaz.org"