Skip to content

Commit

Permalink
Autostart Jessie support
Browse files Browse the repository at this point in the history
II part autostart changes.
  • Loading branch information
miraaz committed Oct 22, 2015
1 parent 86a1182 commit d99492d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions RPi_Cam_Web_Interface_Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,19 @@ EOF
sudo chmod 755 /etc/rc.local
fi

if [ ! "$rpicamdir" == "" ]; then
sudo sed -i "s/\/var\/www\/schedule.php/\/var\/www\/$rpicamdir\/schedule.php/" /etc/rc.local
else
sudo sed -i "s/\/var\/www\/.*.\/schedule.php/\/var\/www\/schedule.php/" /etc/rc.local
if [ "$wwwroot" == "/var/www" ]; then
if [ ! "$rpicamdir" == "" ]; then
sudo sed -i "s/\/var\/www\/schedule.php/\/var\/www\/$rpicamdir\/schedule.php/" /etc/rc.local
else
sudo sed -i "s/\/var\/www\/.*.\/schedule.php/\/var\/www\/schedule.php/" /etc/rc.local
fi
fi
if [ "$wwwroot" == "/var/www/html" ]; then
if [ ! "$rpicamdir" == "" ]; then
sudo sed -i "s/\/var\/www\/schedule.php/\/var\/www\/html\/$rpicamdir\/schedule.php/" /etc/rc.local
else
sudo sed -i "s/\/var\/www\/.*.\/schedule.php/\/var\/www\/html\/schedule.php/" /etc/rc.local
fi
fi

sudo sed -i "s/^autostart.*/autostart=\"yes\"/g" ./config.txt
Expand Down

0 comments on commit d99492d

Please sign in to comment.