Skip to content

Commit

Permalink
Merge pull request silvanmelchior#208 from miraaz/patch-40
Browse files Browse the repository at this point in the history
Autostart Jessie support
  • Loading branch information
roberttidey committed Oct 22, 2015
2 parents 86a1182 + d99492d commit 5558d13
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 5558d13

Please sign in to comment.