Skip to content

Instantly share code, notes, and snippets.

@lithid
Created March 28, 2012 00:16
Show Gist options
  • Save lithid/2221838 to your computer and use it in GitHub Desktop.
Save lithid/2221838 to your computer and use it in GitHub Desktop.
#!/system/bin/sh
# Remove busybox hardlinks.
for i in `ls /system/xbin/`
do
INODE=`stat $i | grep Inode | awk '{print $4}'`
if [ "$INODE" = "`stat /system/xbin/busybox | grep Inode | awk '{print $4}'`" ]
then
echo "rm /system/xbin/$i"
fi
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment