Skip to content

Commit

Permalink
Merge pull request #226 from nolim1t/master-june1patches
Browse files Browse the repository at this point in the history
Modify iotwifi / nginx so that it will start up cleanly every time, Also fix up swap so it correctly starts up each time
  • Loading branch information
nolim1t committed Jun 8, 2019
2 parents 9b4d2c8 + 1f36855 commit 84db650
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions etc/init.d/iotwifi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ depend() {

start() {
sleep 2 && \
docker rm iotwifi && \
docker stop iotwifi && \
docker load --input /media/mmcblk0p1/iotwifi.tar.gz && \
docker run --name=iotwifi -d --restart=unless-stopped --privileged --net host \
-v /etc/iotwifi:/cfg \
Expand Down
2 changes: 2 additions & 0 deletions etc/init.d/nginx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ depend() {

start() {
sleep 2 && \
docker stop nginx && \
docker rm nginx && \
docker load --input /media/mmcblk0p1/nginx.tar.gz

# Lets see which config file to use
Expand Down
6 changes: 3 additions & 3 deletions usr/local/sbin/lncm-usb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ setup_volatile() {
echo '/media/volatile/volatile/swap none swap sw,pri=100 0 0' >> /etc/fstab
fi
# Enable swap
echo "Enabling swap at runlevel so it starts up"
cd /etc/runlevels/boot && \
/bin/ln -s /etc/init.d/swap swap
echo "Add Swap to defaults"
# add to defaults
/sbin/rc-update add swap
else
echo 'Warning: "volatile" usb does not seem to be ext4 formatted'
echo "/dev/${MEDIUM} will not be added to /etc/fstab"
Expand Down

0 comments on commit 84db650

Please sign in to comment.