
wall "Menu Fantastic startup.sh executed"
CMDS=startup.cmd
COMMANDS=""
LENGTH=0
if [ -f /usr/lib/enigma2/python/Plugins/Extensions/EMUmanager/$CMDS ]; then
   LENGTH=`cat $PLUGINDIR/$CMDS | wc -l`
fi
ZEILE=1
while [ $ZEILE -le $LENGTH ]
do
    CMD=`head -n $ZEILE /usr/lib/enigma2/python/Plugins/Extensions/EMUmanager/$CMDS | tail -n 1`
    CMDUNCOMMENTED=""
    CMDBUFFER=""
    for CMDRUNNING in $CMD; do
        if [ $CMDRUNNING = "#" ]; then
           CMDUNCOMMENTED=$CMDBUFFER
        else
           CMDBUFFER="$CMDBUFFER $CMDRUNNING"
        fi
    done
    echo executing Line $ZEILE: command: $CMDUNCOMMENTED
    $CMDUNCOMMENTED
    ZEILE=`expr $ZEILE "+" 1`
done
exit 0
