Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mixman68/fba40bed6f738ae207ee685f5dfb9e55 to your computer and use it in GitHub Desktop.
Save mixman68/fba40bed6f738ae207ee685f5dfb9e55 to your computer and use it in GitHub Desktop.
List all user-installed packages on OpenWrt / LEDE
#!/bin/sh
FLASH_TIME=$(opkg info busybox | grep '^Installed-Time: ')
for i in $(opkg list-installed | cut -d' ' -f1)
do
if [ "$(opkg info $i | grep '^Installed-Time: ')" != "$FLASH_TIME" ]
then
echo $i
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment