Here are my 3 users, the first (admin) is the only which work
[root@qbox]:(435.5kb)~# cat /home/admin/.startup
#!/bin/bash
export USER=id -un
IRSSI_CLIENT=yes
RTORRENT_CLIENT=yes
WIPEDEAD=yes
ADDRESS=$(ip route get 8.8.8.8 | awk ‘NR==1 {print $NF}’)
if [ “$WIPEDEAD” == “yes” ]; then
screen -wipe >/dev/null 2>&1;
fi
if [ “$IRSSI_CLIENT” == “yes” ]; then
(screen -ls|grep irssi >/dev/null || (screen -S irssi -d -t irssi -m irssi -h “${ADDRESS}” && false))
fi
if [ “$RTORRENT_CLIENT” == “yes” ]; then
(screen -ls|grep rtorrent >/dev/null || (screen -fa -dmS rtorrent rtorrent && false))
fi
[root@qbox]:(435.5kb)~# cat /home/Ced/.startup
#!/bin/bash
export USER=$(id -un)
IRSSI_CLIENT=yes
RTORRENT_CLIENT=yes
WIPEDEAD=yes
NO NEED TO EDIT PAST HERE!
if [ “$WIPEDEAD” == “yes” ]; then
screen -wipe >/dev/null 2>&1;
fi
if [ “$IRSSI_CLIENT” == “yes” ]; then
(screen -ls|grep irssi >/dev/null || (screen -fa -dmS irssi irssi && false))
fi
if [ “$RTORRENT_CLIENT” == “yes” ]; then
(screen -ls|grep rtorrent >/dev/null || (screen -dmS rtorrent rtorrent && false))
fi
[root@qbox]:(435.5kb)~# cat /home/Matt/.startup
#!/bin/bash
export USER=$(id -un)
IRSSI_CLIENT=yes
RTORRENT_CLIENT=yes
WIPEDEAD=yes
NO NEED TO EDIT PAST HERE!
if [ “$WIPEDEAD” == “yes” ]; then
screen -wipe >/dev/null 2>&1;
fi
if [ “$IRSSI_CLIENT” == “yes” ]; then
(screen -ls|grep irssi >/dev/null || (screen -fa -dmS irssi irssi && false))
fi
if [ “$RTORRENT_CLIENT” == “yes” ]; then
(screen -ls|grep rtorrent >/dev/null || (screen -dmS rtorrent rtorrent && false))
fi