-
Notifications
You must be signed in to change notification settings - Fork 3
/
uninstall_hacks.sh
38 lines (30 loc) · 1.18 KB
/
uninstall_hacks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# turn the logo red to indicate we're installing
dtool 6 1 0 100
dtool 6 2 0 0
# stop Boxee from running and screwing things up
killall U99boxee; killall BoxeeLauncher; killall run_boxee.sh; killall Boxee; killall BoxeeHal
/opt/local/bin/ps -A -F | grep xbmc | grep -v grep | awk '{print "kill " $2}'|sh
/opt/local/bin/ps -A -F | grep kodi | grep -v grep | awk '{print "kill " $2}'|sh
# remove all traces of the install
umount -f /opt/boxee/skin
umount -f /opt/boxee/media/boxee_screen_saver
umount -f /opt/boxee/skin/boxee/720p
umount -f /opt/boxee/visualisations/projectM
umount -f /etc/thttpd.conf
umount -f /usr/local
rm /data/.boxee/UserData/advancedsettings.xml
/bin/busybox sed -i 's/"hostname":"\([^;]*\);.*","p/"hostname":"\1","p/g' /data/etc/boxeehal.conf
/bin/busybox sed -i 's/<hostname>\([^;]*\);.*<\/hostname>/<hostname>\1<\/hostname>/g' /data/.boxee/UserData/guisettings.xml
touch /data/etc/boxeehal.conf
touch /data/.boxee/UserData/guisettings.xml
rm -Rf /data/hack
# on uninstall we also remove the password
rm /data/etc/passwd
sync;sync;sync
# turn the logo back to green
dtool 6 1 0 0
dtool 6 2 0 50
sleep 5
# reboot the box to active finalize the uninstall
poweroff