#!/bin/sh

bs=/apl/bigsister
$bs/bin/bsadmin -d localhost savelogs

for mac in 4 5 6 7 8; do
    $bs/bin/bsadmin -d localhost leave tnt$mac '*'
    $bs/bin/bsadmin -d localhost leave tnt${mac}g '*'
    $bs/bin/bsadmin -d localhost join tnt$mac NT TSE RACK2
    $bs/bin/bsadmin -d localhost join tnt${mac}g NT TSE RACK2
done

find /var/bigsister/var/display.history* -mtime +30 -print | xargs rm
