Loading src/power.sh +12 −15 Original line number Diff line number Diff line Loading @@ -76,6 +76,12 @@ finish() { local pid local cnt=0 local reason=$1 local pids=( "/var/run/tpm.pid" "/var/run/wsdd.pid" "/var/run/samba/nmbd.pid" "/var/run/samba/smbd.pid" ) touch "$QEMU_END" Loading Loading @@ -114,21 +120,12 @@ finish() { fi fi pid="/var/run/tpm.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/wsdd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/samba/nmbd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/samba/smbd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" for pid in "${pids[@]}"; do if [[ -s "$pid" ]]; then pKill "$(cat "$pid")" fi rm -f "$pid" done closeNetwork Loading Loading
src/power.sh +12 −15 Original line number Diff line number Diff line Loading @@ -76,6 +76,12 @@ finish() { local pid local cnt=0 local reason=$1 local pids=( "/var/run/tpm.pid" "/var/run/wsdd.pid" "/var/run/samba/nmbd.pid" "/var/run/samba/smbd.pid" ) touch "$QEMU_END" Loading Loading @@ -114,21 +120,12 @@ finish() { fi fi pid="/var/run/tpm.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/wsdd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/samba/nmbd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" rm -f "$pid" pid="/var/run/samba/smbd.pid" [ -s "$pid" ] && pKill "$(<"$pid")" for pid in "${pids[@]}"; do if [[ -s "$pid" ]]; then pKill "$(cat "$pid")" fi rm -f "$pid" done closeNetwork Loading