[Blends-commit] [SCM] ezgo branch, master, updated. c4c461e3d7b1812feaa4bc7944cc2d6c2a179c15

Franklin franklin at goodhorse.idv.tw
Thu Feb 26 15:13:24 UTC 2015


The following commit has been merged in the master branch:
commit cb00d4feab471b5402b1a22064a888631472ee56
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Thu Jan 29 00:16:58 2015 +0800

    Add upgrade shell scripts for ezgo users

diff --git a/ezgo-misc/ask_for_upgrade.sh b/ezgo-misc/ask_for_upgrade.sh
new file mode 100755
index 0000000..c00c979
--- /dev/null
+++ b/ezgo-misc/ask_for_upgrade.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+kdialog --yesno "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+
+ans=$?
+
+if [ $ans -eq 0 ]; then
+        gksudo -- sed -ri 's/tw.archive.ubuntu.com/free.nchc.org.tw/' /etc/apt/sources.list /etc/apt/sources.list.d/*
+        gksudo -- sed -ri 's/security.ubuntu.com/free.nchc.org.tw/' /etc/apt/sources.list /etc/apt/sources.list.d/*
+	gksudo -- apt-get update
+	gksudo -- apt-get -y upgrade
+#	gksudo -- /usr/share/ezgo/ezgomenu/desktop_maker.py
+fi

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list