|
@@ -8,6 +8,19 @@ platform_dir="platform-$version"
|
|
|
platform_url="$host$latest_path/$platform_file"
|
|
platform_url="$host$latest_path/$platform_file"
|
|
|
md5sums_url="$host$latest_path/md5sums.txt"
|
|
md5sums_url="$host$latest_path/md5sums.txt"
|
|
|
|
|
|
|
|
|
|
+force=false
|
|
|
|
|
+while getopts 'f' option; do
|
|
|
|
|
+ case "$option" in
|
|
|
|
|
+ f) force=true;;
|
|
|
|
|
+ esac
|
|
|
|
|
+done
|
|
|
|
|
+
|
|
|
|
|
+IFS=_ read brand kernel < <(uname -v)
|
|
|
|
|
+if [[ $kernel == $version ]]; then
|
|
|
|
|
+ echo "already on latest version: $kernel"
|
|
|
|
|
+ $force || exit -1
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
tmp=$(mktemp -d)
|
|
tmp=$(mktemp -d)
|
|
|
cd "$tmp" || exit -1
|
|
cd "$tmp" || exit -1
|
|
|
|
|
|