mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-13 05:41:55 +00:00
move down trap command to prevent triggered by runing with no argument
This commit is contained in:
parent
cfcac6ae73
commit
ecb8db552f
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,6 @@
|
|||
PS4="\e[34m> ${0##*/}:\e[0m "
|
||||
set -x
|
||||
set -e
|
||||
trap cleanup EXIT
|
||||
|
||||
if (( $# < 1 )); then
|
||||
echo Usage: ${0##*/} link-index peer-p2p-mac [nm-link-index]
|
||||
|
@ -145,6 +144,8 @@ peer_disconnect()
|
|||
killall miracle-wifid &>/dev/null || true
|
||||
killall miracle-wfwctl &>/dev/null || true
|
||||
|
||||
trap cleanup EXIT
|
||||
|
||||
set_prop org.freedesktop.NetworkManager \
|
||||
/org/freedesktop/NetworkManager/Devices/"$nm_link_index" \
|
||||
org.freedesktop.NetworkManager.Device \
|
||||
|
|
Loading…
Reference in a new issue