# run something from TTY1, # this could be another window-service... CMD="" CMD="startx" #+ ~/.xinitrc $MKSH_MAIN_LOADED &&return 0 [[ -z "$CMD" ]] &&return 0 if [[ $(tty) == "/dev/tty1" ]]; then eval "$CMD" fi