[pkg-fso-commits] [SCM] Debian packaging for uboot-envtools branch, master, updated. debian/20081215-2-17-g263a613

Per Andersson avtobiff at gmail.com
Sun Nov 22 19:35:36 UTC 2009


The following commit has been merged in the master branch:
commit 5dd1ba8ea15f2e4112a3ef1d8668473b5d7de063
Author: Per Andersson <avtobiff at gmail.com>
Date:   Wed Aug 12 14:54:57 2009 +0200

    Switched to semi-automatic configuration of machine.

diff --git a/debian/uboot-envtools.postinst b/debian/uboot-envtools.postinst
index 7beabd5..c722fd7 100644
--- a/debian/uboot-envtools.postinst
+++ b/debian/uboot-envtools.postinst
@@ -9,11 +9,15 @@ set -e
 db_get uboot-envtools/machine
 machine="$RET"
 
+if [ "x$machine" = "x" ]; then
+    machine="$(cat /proc/cpuinfo | sed 's/^Hardware:\s*//')"
+fi
+
 case "$machine" in
-    "Kurobox Pro")
+    "Kurobox Pro" | "Buffalo/Revogear Kurobox Pro")
         file="kurobox_pro.config"
         ;;
-    "Linkstation Pro Live")
+    "Linkstation Pro Live" | "Buffalo Linkstation Pro/Live")
         file="linkstation_pro_live.config"
         ;;
     "Linkstation 2")
@@ -22,22 +26,22 @@ case "$machine" in
     "Linkstation HG")
         file="lsppchg.config"
         ;;
-    "OpenMoko Neo 1973 (GTA01)")
+    "OpenMoko Neo 1973 (GTA01)" | "GTA01")
         file="openmoko_gta01.config"
         ;;
-    "OpenMoko FreeRunner (GTA02)")
+    "OpenMoko FreeRunner (GTA02)" | "GTA02")
         file="openmoko_gta02.config"
         ;;
     "QNAP TS-101")
         file="qnap_ts101.config"
         ;;
-    "QNAP TS109/209")
+    "QNAP TS-109/TS-209")
         file="qnap_ts109-209.config"
         ;;
-    "QNAP TS-119/219")
+    "QNAP TS-119/TS-219")
         file="qnap_ts119-219.config"
         ;;
-    "Do not configure")
+    *) # Do not configure
         exit 0
         ;;
 esac

-- 
Debian packaging for uboot-envtools



More information about the pkg-fso-commits mailing list