#!/bin/bash # # /etc/rc.local: Local multi-user startup script. # . /etc/profile . ${MV_ROOT}/bin/install_functions.sh #check network parms init_network #install initial database pacman -S --noconfirm mythdb-initial 2>/dev/null #search for remote init_remote echo $CMDLINE | grep -qi NoX if [ $? = 0 ] then echo "No auto X option found" # /usr/bin/chvt 2 else /root/startx & fi # Set up automatically logged in user (larch live system only) if [ -f /.livesys/autologin ]; then cp /.livesys/autologin /tmp/newuser fi