Archived
removed pibrella stuff
This commit is contained in:
@@ -35,15 +35,7 @@ checkDevice() {
|
||||
# query udev argument
|
||||
device="$1"
|
||||
msg "info: checking: $1"
|
||||
#model=$(</sys/block/$device/device/model)
|
||||
#msg "info: model is: $model"
|
||||
|
||||
# we just ignore sda because this should be our os and/or target harddisk
|
||||
# change this heuristic to your needs!
|
||||
#if [ "$device" = "sda" ]; then
|
||||
# msg "info: ignoring device sda (probably no SD-card)"
|
||||
# exit 0
|
||||
#fi
|
||||
}
|
||||
|
||||
# --- prepare system -----------------------------------------------------
|
||||
@@ -87,17 +79,14 @@ cleanup() {
|
||||
grep -q "$mountdir" /etc/mtab && umount "$mountdir"
|
||||
|
||||
msg "Finished! Remove SDcard"
|
||||
killFBI
|
||||
/usr/bin/fbi -d /dev/fb1 -T 1 -noverbose -a /var/www/html/img/insert.png
|
||||
# change state of HAT: Action End
|
||||
#/usr/local/sbin/hatctl.py AE
|
||||
|
||||
}
|
||||
|
||||
# --- copy all images ----------------------------------------------------
|
||||
|
||||
copyFiles() {
|
||||
#cleanup display and show copy screen
|
||||
python /home/pi/pi-imgtank/files/python-scripts/copy.py
|
||||
#python /home/pi/pi-imgtank/files/python-scripts/copy.py
|
||||
|
||||
# check if timestamp-file exists on SD-card. If not, create it
|
||||
if [ ! -f "$mountdir/.last_img" ]; then
|
||||
|
||||
@@ -12,11 +12,7 @@
|
||||
# --- basic packages ------------------------------------------------------
|
||||
|
||||
apt-get update
|
||||
apt-get -y install rsync graphicsmagick python-pip exfat-fuse fbi
|
||||
|
||||
# --- install pibrella support-library ------------------------------------
|
||||
|
||||
#pip install pibrella
|
||||
apt-get -y install rsync graphicsmagick exfat-fuse
|
||||
|
||||
# --- install specific files ----------------------------------------------
|
||||
|
||||
@@ -25,9 +21,7 @@ rsync -avz $(dirname "$0")/../files/ /
|
||||
# --- enable/restart services ---------------------------------------------
|
||||
|
||||
systemctl enable endofboot.service
|
||||
#systemctl enable hat-pibrella-server.service
|
||||
systemctl enable img_upload.path
|
||||
|
||||
systemctl start endofboot.service
|
||||
#systemctl start hat-pibrella-server.service
|
||||
systemctl start img_upload.path
|
||||
|
||||
Reference in New Issue
Block a user