Skip to content

Commit

Permalink
revert changes to unrelated restart_network.sh
Browse files Browse the repository at this point in the history
See sailfishos#55 for these
  • Loading branch information
nephros committed Apr 26, 2022
1 parent aa7d363 commit e989730
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/restart_network.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh

warning() {
printf "%s: Warning: %s\n" "$(basename $0)" "${@}" 1>&2;
function warning {
echo "`basename $0`: Warning: ${@:1}" 1>&2;
}

service_do() {
if systemctl "$1" "$2"; then
function service_do {
if systemctl $1 $2; then
return 0;
else
warning "Status $? on" "${@}"
warning "Status $?" "on $1 $2" ${@:3}
return 1;
fi
}
Expand Down

0 comments on commit e989730

Please sign in to comment.