Skip to content

Commit

Permalink
host-setup: use symlink instead of cp
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Jan 16, 2017
1 parent 641a768 commit 9ab194c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions beagle-tester-host-setup.sh
Expand Up @@ -60,8 +60,11 @@ sed -i -e 's:#USE_PERSONAL_SSID=:USE_PERSONAL_SSID=BeagleBone-TESTER:g' /etc/def

echo "wlan0, updated: [${USE_WL18XX_IP_PREFIX}],[${USE_PERSONAL_SSID}]"

wfile="beaglebone-getting-started-2016-11-07.img"
cp /var/cache/doc-beaglebone-getting-started/${wfile} /var/www/html/${wfile}
#/var/local/bb_usb_mass_storage.img is a symlink to:
#/var/cache/doc-beaglebone-getting-started//beaglebone-getting-started-2016-11-07.img
#(or newer)
wfile="test.file"
ln -s /var/local/bb_usb_mass_storage.img /var/www/html/${wfile}
sha256sum /var/www/html/${wfile} > /var/www/html/${wfile}.sha256sum

echo "wlan0, dl file: [${wfile}] setup on port 8080"
Expand Down

0 comments on commit 9ab194c

Please sign in to comment.