Skip to content

Commit

Permalink
fix rc.local not start on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
trlsmax committed Apr 6, 2016
1 parent 017bb57 commit a2319d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions chroot_script_rpi2
Expand Up @@ -285,5 +285,6 @@ EOM
configure_hardware
install_software
apt-get clean
systemctl enable rc-local.service


4 changes: 2 additions & 2 deletions create_rfs
Expand Up @@ -32,9 +32,9 @@ cd $_DIR
distro="wily"
#repo="http://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports/"
#repo="http://ftp.ubuntu-tw.org/mirror/ubuntu-ports/"
repo="http://mirrors.ustc.edu.cn/ubuntu-ports"
#repo="http://mirrors.ustc.edu.cn/ubuntu-ports"
#repo="http://mirrors.ustc.edu.cn/ubuntu"
#repo="http://ports.ubuntu.com/ubuntu-ports"
repo="http://ports.ubuntu.com/ubuntu-ports"

# === Debian ===
#distro="wheezy"
Expand Down
10 changes: 8 additions & 2 deletions create_rpi2_image
Expand Up @@ -573,6 +573,12 @@ su astro -c "x11vnc -display :1 -forever &"
exit 0
_EOF_


cat >> $odir/lib/systemd/system/rc-local.service << _EOF_
[Install]
WantedBy=multi-user.target
_EOF_

# *****************************
# Setup tmux to show the cursor
cat > $odir/home/$USER/.tmux.conf << _EOF_
Expand Down Expand Up @@ -703,8 +709,8 @@ if [ ! "${sdcard}" = "" ]; then
fi

rm -f ./${sdcard}1 ./${sdcard}2 ./${sdcard}u
#tar cJvf ./tinyastro_${BOARD}.tar.xz ./${sdcard} ./README
#rm -f ./${sdcard}
tar cJvf ./tinyastro_${BOARD}.tar.xz ./${sdcard} ./README
rm -f ./${sdcard}
fi

if [ "${_directsd}" = "yes" ] ; then
Expand Down

0 comments on commit a2319d3

Please sign in to comment.