Skip to content

Instantly share code, notes, and snippets.

View kernelzeroday's full-sized avatar
💭
hello segfault my old friend

kelsey kernelzeroday

💭
hello segfault my old friend
View GitHub Profile
@vbajpai
vbajpai / opkgclean.sh
Last active April 3, 2025 19:22
If opkg runs out of space, it will not remove the files it was installing. Run this custom script in order recover the space by removing these files and the installed dependencies.
#!/bin/sh
#takes one argument/parameter: the name of the package which didn't install correctly and should be removed along with its dependencies
#do opkg update first
#example: ./opkgremovepartlyinstalledpackage.sh pulseaudio-daemon
#get list of all packages that would be installed along with package x
opkg update
PACKAGES=`opkg --force-space --noaction install $1 | grep http | cut -f 2 -d ' ' | sed 's/.$//'`
for i in $PACKAGES
do