1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 10:01:55 +00:00

move down trap command to prevent triggered by runing with no argument

This commit is contained in:
Derek Dai 2017-02-15 23:32:52 +08:00
parent cfcac6ae73
commit ecb8db552f
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -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 \