You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
251 B
Bash

4 years ago
#!/bin/sh
ACTIVE_SESSIONS=$(ubus call session list | jsonfilter -a -e '@[*].ubus_rpc_session' | grep -v 00000000000000000000000000000000)
for SESSION in ${ACTIVE_SESSIONS}; do
ubus call session destroy "{'ubus_rpc_session':\"${SESSION}\"}"
done