summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local
blob: fe7cfa6538eec9a5dc50e6b56b56b10d1dca0648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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