#!/bin/ash is_installed() { for dest in $(grep dest /etc/ipkg.conf |cut -d' ' -f 3); do grep Package ${dest}/usr/lib/ipkg/status |cut -d' ' -f 2 |grep -q "^$1\$" done }