add_session_script.sh 282 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash
USERS="01-mini 02-super 03-maxi prof direction"
for u in $USERS
do
	if [ -z "`grep '^exec /usr/local/bin/session.sh' /home/$u/.fluxbox/startup `" ]
	then
		sed -i -e 's@^exec fluxbox$@exec /usr/local/bin/session.sh \&\nexec fluxbox@' /home/$u/.fluxbox/startup 
	fi
done