Welcome to mirror list, hosted at ThFree Co, Russian Federation.

uninstall.sh « src - github.com/ClusterM/kindle-lightfix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d5ed4ca5c95eddca68992904a1f89dc8f882700 (plain)
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
39
40
41
#!/bin/sh
##
#
# lightfix installer (c) Cluster aka Alexey Avyukgin
# mailto: clusterrr@clusterrr.com
#
##

# Pull some helper functions for logging
source /etc/upstart/functions

[ -f utils.tar.gz ] && {
	tar xvf utils.tar.gz
	rm -f utils.tar.gz
}

# Pull some helper functions for progress bar handling
source consts/patchconsts
source ui/blanket
source ui/progressbar

LOG_DOMAIN=lightfix
SCALING=1
FILECOUNT=1

logmsg()
{
	f_log $1 ${LOG_DOMAIN} $2 "$3" "$4"
}

HACKNAME="${LOG_DOMAIN}"
HACKVER="0.0.1"

temp_crontab=`mktemp`
cat /etc/crontab/root | grep -v FrontLight > ${temp_crontab}
mv ${temp_crontab} /etc/crontab/root
update_percent_complete_scaled 1

logmsg "Lightfix uninstalled"

return 0