2019-07-31 02:07:02 +00:00
|
|
|
#!/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"
|
2019-08-07 06:03:56 +00:00
|
|
|
grep -q "ubi0:persist" "${TARGET_DIR}/etc/fstab" \
|
|
|
|
|| echo 'ubi0:persist /root ubifs defaults 0 0' >> "${TARGET_DIR}/etc/fstab"
|