badge-buildroot/board/businesscard/v1/post-build.sh
2019-08-17 09:20:54 -05:00

5 lines
309 B
Bash
Executable file

#!/bin/sh
grep -q "GADGET_SERIAL" "${TARGET_DIR}/etc/inittab" \
|| echo '/dev/ttyGS0::respawn:/sbin/getty -L /dev/ttyGS0 0 vt100 # GADGET_SERIAL' >> "${TARGET_DIR}/etc/inittab"
grep -q "ubi0:persist" "${TARGET_DIR}/etc/fstab" \
|| echo 'ubi0:persist /root ubifs defaults 0 0' >> "${TARGET_DIR}/etc/fstab"