Verified Commit 48634f65 authored by Karel Koci's avatar Karel Koci 🤘 Committed by Karel Koci

opkg-wrapper: warn about dangerous upgrade operation

OPKG implementation of upgrade is dangerous specially if applied to
system packages.
parent c6649422
......@@ -44,6 +44,15 @@ while [ "$#" -gt 0 ]; do
OPERATION="r"
break
;;
upgrade)
echo "You should not be using opkg upgrade as it is known to break stuff. You have been warned." >&2
echo "You should be using pkgupdate instead!" >&2
echo "If you know what you are doing then type YES and continue.." >&2
read -r iknow
[ "$iknow" = "YES" ] || exit
ARGS="$ARGS upgrade"
break
;;
*)
ARGS="$ARGS $1"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment