If anyone knows a lot about the kindle and installed files I'm betting they could easily write an uninstall script for this. I think that the easiest way would be to make use of the DK_update script that it checks for every time it boots at
DK_System/bin/DK_update
This is the first few lines of the S79switch:
Code:
#DK Update
if [ -x /mnt/us/DK_System/bin/DK_update ]
then
chmod +x /mnt/us/DK_System/bin/DK_update
/mnt/us/DK_System/bin/DK_update
rm /mnt/us/DK_System/bin/DK_update -f
fi
possible contents of DK_update:
Code:
#!/bin/sh
mntroot rw
rm -f /etc/rcS.d/S79switch
rm -f /etc/rc5.d/s96rundk
rm -f /etc/rc5.d/S96rundk
rm -f /etc/rc5.d/rundk.sh
rm -f /dev/DK_Debug.log
mntroot ro
I think this would work, but it could only be ran once, and I don't know what all is added to the system. Also, it may be wise to ensure that the DK_system folder be removed so that the kindle does not fail the following checks as S79switch continues to be executed after the DK_update deletes the other scripts. I assume that the fs is mounted as readonly..
Code:
rm -rf /mnt/us/DK_System
should do the trick, causing the rest of the script to behave as if DK is not installed, resulting in a boot into the normal kindle system. The user could then migrate their documents out of DK_documents, DK_pictures, and manually remove DK_MDB
Anyways, I'd prefer somone who has a serial interface // more experience with linux // DK developers come up with a solution themselves, as I'm not confident as to what they installed on the system (clean uninstall should be possible so that future amazon updates/etc can happen) and am not sure that my uninstall method would work properly.
Anyways:
Code:
#!/bin/sh
mntroot rw
rm -f /etc/rcS.d/S79switch
rm -f /etc/rc5.d/s96rundk
rm -f /etc/rc5.d/S96rundk
rm -f /etc/rc5.d/rundk.sh
rm -f /dev/DK_Debug.log
rm -rf /mnt/us/DK_System
mntroot ro
I realize you will be deleting the scripts as they are running (but I don't think that will be a problem, I could be wrong, like I said, I don't know THAT much about shell scripts =X)