Archived
removed pibrella stuff
This commit is contained in:
@@ -35,15 +35,7 @@ checkDevice() {
|
|||||||
# query udev argument
|
# query udev argument
|
||||||
device="$1"
|
device="$1"
|
||||||
msg "info: checking: $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 -----------------------------------------------------
|
# --- prepare system -----------------------------------------------------
|
||||||
@@ -87,17 +79,14 @@ cleanup() {
|
|||||||
grep -q "$mountdir" /etc/mtab && umount "$mountdir"
|
grep -q "$mountdir" /etc/mtab && umount "$mountdir"
|
||||||
|
|
||||||
msg "Finished! Remove SDcard"
|
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 ----------------------------------------------------
|
# --- copy all images ----------------------------------------------------
|
||||||
|
|
||||||
copyFiles() {
|
copyFiles() {
|
||||||
#cleanup display and show copy screen
|
#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
|
# check if timestamp-file exists on SD-card. If not, create it
|
||||||
if [ ! -f "$mountdir/.last_img" ]; then
|
if [ ! -f "$mountdir/.last_img" ]; then
|
||||||
|
|||||||
@@ -12,11 +12,7 @@
|
|||||||
# --- basic packages ------------------------------------------------------
|
# --- basic packages ------------------------------------------------------
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install rsync graphicsmagick python-pip exfat-fuse fbi
|
apt-get -y install rsync graphicsmagick exfat-fuse
|
||||||
|
|
||||||
# --- install pibrella support-library ------------------------------------
|
|
||||||
|
|
||||||
#pip install pibrella
|
|
||||||
|
|
||||||
# --- install specific files ----------------------------------------------
|
# --- install specific files ----------------------------------------------
|
||||||
|
|
||||||
@@ -25,9 +21,7 @@ rsync -avz $(dirname "$0")/../files/ /
|
|||||||
# --- enable/restart services ---------------------------------------------
|
# --- enable/restart services ---------------------------------------------
|
||||||
|
|
||||||
systemctl enable endofboot.service
|
systemctl enable endofboot.service
|
||||||
#systemctl enable hat-pibrella-server.service
|
|
||||||
systemctl enable img_upload.path
|
systemctl enable img_upload.path
|
||||||
|
|
||||||
systemctl start endofboot.service
|
systemctl start endofboot.service
|
||||||
#systemctl start hat-pibrella-server.service
|
|
||||||
systemctl start img_upload.path
|
systemctl start img_upload.path
|
||||||
|
|||||||
Reference in New Issue
Block a user