Skip to content

Commit

Permalink
add lcd driver, move localtunnel to another stage
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Sep 19, 2019
1 parent 81c1fbf commit 4b946d4
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 5 deletions.
4 changes: 4 additions & 0 deletions stage-lcd-show/00-driver-install/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libevdev2
libmtdev1
xorg-input-abi-24
xserver-xorg-core
6 changes: 6 additions & 0 deletions stage-lcd-show/00-driver-install/00-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

install -v -m 755 files/install_lcd_driver.sh "${ROOTFS_DIR}/sbin/install_lcd_driver.sh"
on_chroot << EOF
/sbin/install_lcd_driver.sh
EOF
1 change: 1 addition & 0 deletions stage-lcd-show/00-driver-install/files/LCD-show
Submodule LCD-show added at 05a40b
7 changes: 7 additions & 0 deletions stage-lcd-show/00-driver-install/files/install_lcd_driver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd /boot
wget http://www.lcdwiki.com/res/RaspDriver/LCD-show.tar.gz;
tar -xzf LCD-show.tar.gz;
cd LCD-show;
./LCD35-show 180
4 changes: 4 additions & 0 deletions stage-lcd-show/EXPORT_IMAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IMG_SUFFIX="-lite"
if [ "${USE_QEMU}" = "1" ]; then
export IMG_SUFFIX="${IMG_SUFFIX}-qemu"
fi
5 changes: 5 additions & 0 deletions stage-lcd-show/prerun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

if [ ! -d "${ROOTFS_DIR}" ]; then
copy_previous
fi
1 change: 1 addition & 0 deletions stage-localtunnel/00-localtunnel-install/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git
7 changes: 7 additions & 0 deletions stage-localtunnel/00-localtunnel-install/01-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash -e

install -v -m 755 files/install_node.sh "${ROOTFS_DIR}/sbin/install_node.sh"

on_chroot << EOF
/sbin/install_node.sh
EOF
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -x

NODE_VERSION=v9.8.0;
NPM_CACHE=/home/pi/.npm/npm-cache
Expand All @@ -17,6 +18,7 @@ mv node-$NODE_VERSION-linux-armv7l /opt/nodejs/;
ln -f -s /opt/nodejs/bin/node /sbin/node;
ln -f -s /opt/nodejs/bin/npm /sbin/npm;

rm -rf $NPM_CACHE
npm config set unsafe-perm true
npm cache clean -f
npm config set cache $NPM_CACHE --global
Expand Down
4 changes: 4 additions & 0 deletions stage-localtunnel/EXPORT_IMAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IMG_SUFFIX="-lite"
if [ "${USE_QEMU}" = "1" ]; then
export IMG_SUFFIX="${IMG_SUFFIX}-qemu"
fi
5 changes: 5 additions & 0 deletions stage-localtunnel/prerun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

if [ ! -d "${ROOTFS_DIR}" ]; then
copy_previous
fi
5 changes: 0 additions & 5 deletions stage2/01-sys-tweaks/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,3 @@ usermod --pass='*' root
EOF

rm -f "${ROOTFS_DIR}/etc/ssh/"ssh_host_*_key*

install -v -m 755 files/install_node.sh "${ROOTFS_DIR}/sbin/install_node.sh"
on_chroot << EOF
/sbin/install_node.sh
EOF

0 comments on commit 4b946d4

Please sign in to comment.