Skip to content

Commit

Permalink
rdw: quit for actions other than "up" or "down".
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunner committed Aug 13, 2016
1 parent 1d05277 commit 9c2b49a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tlp-rdw-nm.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ itype="unknown"
# Quit for invalid interfaces
[ -n "$iface" ] && [ "$iface" != "none" ] || exit 0

# Quit for actions other than "up" and "down"
[ "$action" = "up" ] || [ "$action" = "down" ] || exit 0

echo_debug "nm" "+++ rdw_nm($iface).$action"
if [ -n "$addpath" ]; then
echo_debug "path" "PATH=$oldpath[$addpath]"
Expand Down

0 comments on commit 9c2b49a

Please sign in to comment.