blob: 088bc6339adc9e7d4d30feb84097d2213ef57316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
case "$1" in
installed)
cat /usr/lib/opkg/status
;;
available)
lists_dir=$(sed -rne 's#^lists_dir \S+ (\S+)#\1#p' /etc/opkg.conf /etc/opkg/*.conf 2>/dev/null | tail -n 1)
find "${lists_dir:-/tmp/opkg-lists}" -type f '!' -name '*.sig' | xargs -r gzip -cd
;;
*)
echo "Usage: $0 {installed|available}" >&2
exit 1
;;
esac
|