Browse Source

Add version identification

Touch a file with the version for ease of identification
Ryan Schwartz 11 năm trước cách đây
mục cha
commit
4b6372427e
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      platform-upgrade

+ 8 - 0
platform-upgrade

@@ -71,6 +71,14 @@ else
         echo " OK"
 fi
 
+echo -n "Marking release version..."
+if ! echo $version > $platform_dir/VERSION ; then
+        echo " failed"
+        exit -1
+else
+        echo " OK"
+fi
+
 echo -n "Updating platform on boot device..."
 if ! rsync -a "$platform_dir/" usb/platform.new/ ; then
         echo " failed"