Skip to content

Commit

Permalink
Update post_sfos-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Apr 16, 2019
1 parent 0c03b98 commit 2ad6258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/post_sfos-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -ufC
called="$(basename "$0")"
if ! echo " $(id -un) $(id -Gn) " | fgrep -q ' root '
then
echo "$called must be started with root privileges: aborting."
echo "Aborting: $called must be started with root privileges."
exit 1
fi

if ! [ "$(uptime | cut -f 1 -d ',' | rev | grep '^nim ' | cut -f 2 -d ' ' | rev)" -lt "4" ] 2> /dev/null
then
echo "Mind that $called is best run on a freshly rebooted device."
echo "Notice: Mind that $called is best run on a freshly rebooted device."
echo
fi

Expand Down

0 comments on commit 2ad6258

Please sign in to comment.