uzbek-plus/b13/run/cage-down.sh

4 lines
319 B
Bash

#!/bin/sh
. /usr/local/lib/b13/run/wl-common.sh
pidof cage >/dev/null && { kill $(pidof cage); i=0; while pidof cage >/dev/null && [ $i -lt 50 ]; do sleep 0.1; i=$((i+1)); done; pidof cage >/dev/null && kill -9 $(pidof cage); }
rm -f $S/cage.pid $S/wayland-display; log "CAGE DOWN vt=$(cat /sys/class/tty/tty0/active)"