#!/bin/bash if [ -f /etc/skel/.fluxbox/menu ]; then rm -f /etc/skel/.fluxbox/menu fi #Generate an application menu in skel/.fluxbox, based on the VL #version found VL_VERSION=`cat /etc/vector-version` if [ "$VL_VERSION" = "Vector Linux 5.8 Standard 12-16-2006" ]; then cat /usr/share/fluxbox/menu.standard > /etc/skel/.fluxbox/menu elif [ "$VL_VERSION" = "Vector Linux 5.8 SOHO Final May-15-2007" ]; then cat /usr/share/fluxbox/menu.soho > /etc/skel/.fluxbox/menu else cat /usr/share/fluxbox/menu > /etc/skel/.fluxbox/menu fi #Add the skel .fluxbox directory to home directory of all existing users. USERS=`ls /home | grep -v backupsys | grep -v ftp | grep -v tmp` cp -r /etc/skel/.fluxbox /root for USERNAME in $USERS; do FLUXDIR=/home/$USERNAME/.fluxbox if [ ! -d $FLUXDIR ]; then cp -r /etc/skel/.fluxbox $FLUXDIR chown -R $USERNAME:$USERNAME $FLUXDIR fi done .