From 362ed320d8fcc8636cabb42d6db50877deb788f3 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 17 Jul 2018 23:45:26 +0200 Subject: [PATCH] add files to usbdisk --- README.md | 3 +++ raspberry-environment/background.png | Bin 0 -> 7407 bytes raspberry-environment/pythonscript.py | 9 ++++----- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 raspberry-environment/background.png diff --git a/README.md b/README.md index 10480ea..33e2ba3 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,9 @@ apt install python3-pyinotify python3-rpi.gpio echo "dtoverlay=dwc2" >> /boot/config.txt +copy everything to /opt/freezer/ +add to /etc/rc.local: python3 /opt/freezer/display.py + readonly-root diff --git a/raspberry-environment/background.png b/raspberry-environment/background.png new file mode 100644 index 0000000000000000000000000000000000000000..b74087faa430e32c13f2b0ba69e3ce9c7a879689 GIT binary patch literal 7407 zcmeHLXH-+!7QQIOp@h`M1QqEJB?!`qA|g$i2ndlbVgPkSdIqEms35(Gl+Xhh zrGp4#fCP{x5~TzIDIs}Dd_Q<^%^P9ObFKL?cddKw&b|A7`#XE@v+q6$H!;#-VdP;1 z0D$GZE*Js;v}AEFu#cX6sjWT8LcX#8_QlIS5IcXNn_kdsE;pQnd;)Gd2|3+zxds5Y zhUXG3<3x@zYm+QqOVga+*X)IoviFnge8QCCmoNeko6lG;G*E3maqNSD=)SK{kmhSl zTnTY!AyPFT`8=~zB~>Ml+MvxK1~co`@7!T!40omnxWxj95dk(wmA`D@?`2~~ZRVOc z%*MS`Z!dS5AE}$MMq&~$v5QW*oBny<0y8uWXNX?NkMn_iyFhxlim@>hqaNGZH1giKGvNH>i<;rsBuVeKjQ2Y z9WY!HNsL`8kAzlOy2V$1R8TcOtT%nr7IOae_a&lp91Jf`Z)ERT0=>+VXQ9%P&<#j?g%K(E|@IMK@4&ps7<+~zIqvr(Lj zG@?^yJ*zLKBvOy>=5KT+q;Jk%FJ?)*9yxTpSWb4dkp9)+)G9|Y@ay~Hd;wT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Z3*w9R=dtdRE_%BIkpN6l8+#Q4UXh(G6_1s~xufcC0wV_b#=`XOUc~cJN=ow(Z0p zulzs0OI|TM1qT6gls`3uC~s`*QU6T*E8W_k*a@L9_;DA%&H5h73qq9P&*)MWLMTc* z1Q(*}{tdvlO?7ADZkX>3F=V&C_#TO$1pb}P-vE3!j;8AFhWT#5cjF7H?#}|>#d7&4 zMgH4a`vCIh;(s-F|A!L4bMS2+oSlgv3O1!V000nW_%m^5h~K-}ogr>B`B%WNhHgMt X=d;~>2b8BNb2zVU1THyy_1?b#(6a!$ literal 0 HcmV?d00001 diff --git a/raspberry-environment/pythonscript.py b/raspberry-environment/pythonscript.py index 2bb16db..94425f1 100644 --- a/raspberry-environment/pythonscript.py +++ b/raspberry-environment/pythonscript.py @@ -125,11 +125,10 @@ if __name__ == '__main__': #loop-mount #mkfs subprocess.run(['mkfs', '-t', 'vfat', '-n', 'SCREENSHOTS', '/tmp/usbdisk.img'], shell=False, check=True) - #subprocess.run(['mount', '-o', 'loop,ro', '-t', 'vfat', '/tmp/usbdisk.img', '/mnt'], shell=False, check=True) - # copy screenshot-tool.exe - # copy background.png - #subprocess.run(['umount', '/mnt'], shell=False, check=False) - + subprocess.run(['mount', '-o', 'loop,rw', '-t', 'vfat', '/tmp/usbdisk.img', '/mnt'], shell=False, check=True) + subprocess.run('cp /opt/freezer/background.png /mnt/', shell=True, check=True) + subprocess.run('cp /opt/freezer/freeze.exe /mnt/', shell=True, check=True) + subprocess.run(['umount', '/mnt'], shell=False, check=True) subprocess.run(['modprobe', 'g_mass_storage', 'file=/tmp/usbdisk.img', 'stall=0', 'removable=1', 'iSerialNumber=1234567890'], shell=False, check=True) #tvservice -p