Skip to content
Permalink
Browse files

Add HWID for Tinker Board / S

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 12, 2019
1 parent 43d2a12 commit 1747f253f06d471323f323cca564a61e04d32857
Showing with 13 additions and 0 deletions.
  1. +13 −0 nems-cleanup.sh
@@ -208,6 +208,19 @@ nameserver 2001:4860:4860::8844
/root/nems/nems-admin/build/011-tty

# Make it so filesystem resizes at first boot
# 100 = Tinker Board
if (( $platform == 100 )); then
# NEMS Universal Filesystem Restore
addition="/root/nems/nems-admin/resize_rootfs/nems-fs-resize\n"
if grep -q "exit" /etc/rc.local; then
# This file contains an exit command, so make sure our new command comes before it
/bin/sed -i -- 's,exit,'"$addition"'exit,g' /etc/rc.local
else
# No exit command within the file, so just add it
echo "PLACEHERE" >> /etc/rc.local
/bin/sed -i -- 's,PLACEHERE,'"$addition"'exit 0,g' /etc/rc.local
fi
fi
if (( $platform >= 0 )) && (( $platform <= 9 )); then
# Raspberry Pi
addition="/root/nems/nems-admin/resize_rootfs/raspi\n"

0 comments on commit 1747f25

Please sign in to comment.
You can’t perform that action at this time.