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

github.com/ClusterM/kindle-lightfix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/uninstall.sh')
-rwxr-xr-xsrc/uninstall.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/uninstall.sh b/src/uninstall.sh
new file mode 100755
index 0000000..a80a6f3
--- /dev/null
+++ b/src/uninstall.sh
@@ -0,0 +1,39 @@
+#!/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"
+
+cat /etc/crontab/root | grep -v FrontLight > /etc/crontab/root
+update_percent_complete_scaled 1
+
+logmsg "Lightfix uninstalled"
+
+return 0