mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-19 02:12:41 +01:00
Merge branch 'develop' of https://github.com/FunKey-Project/FunKey-OS into develop
This commit is contained in:
@@ -20,12 +20,8 @@ touch "${LOCK_FILE}"
|
||||
# Increment name and save snapshot
|
||||
SNAPSHOT_DIR=/mnt/funkey/snapshots
|
||||
mkdir -p "${SNAPSHOT_DIR}"
|
||||
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.PNG 2> /dev/null | tail -1 | sed 's/^IMG_\([0-9]\+\)\.PNG$/\1/')
|
||||
if [ "x${last}" = "x" ]; then
|
||||
last=1
|
||||
else
|
||||
last=$(expr $last + 1)
|
||||
fi
|
||||
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.PNG 2> /dev/null | tail -1 | sed 's/^IMG_0*\([0-9]\+\)\.PNG$/\1/')
|
||||
let last=${last}+1
|
||||
snapshot_file=$(printf "IMG_%04d.PNG" $last)
|
||||
notif_set 2 " NEW SCREEENSHOT ${snapshot_file}"
|
||||
fbgrab "${SNAPSHOT_DIR}/${snapshot_file}" &
|
||||
|
||||
Reference in New Issue
Block a user