2018-02-25 19:07:30 +00:00
|
|
|
#!/bin/sh
|
2018-03-04 18:10:30 +00:00
|
|
|
|
2020-05-09 22:49:37 +01:00
|
|
|
# Add local path to init scripts
|
|
|
|
sed -i '3iexport PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin' ${TARGET_DIR}/etc/init.d/rcK
|
|
|
|
sed -i '3iexport PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin' ${TARGET_DIR}/etc/init.d/rcS
|
|
|
|
|
|
|
|
# Remove log daemon init scripts since they are loaded from inittab
|
|
|
|
rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
|
2020-06-13 22:05:55 +01:00
|
|
|
|
2020-11-03 16:37:21 +00:00
|
|
|
# Remove dhcp lib dir and link to /tmp
|
|
|
|
rm -rf ${TARGET_DIR}/var/lib/dhcp/
|
|
|
|
ln -s /tmp ${TARGET_DIR}/var/lib/dhcp
|
|
|
|
|
2020-11-04 17:28:39 +00:00
|
|
|
# Remove dhcpcd dir and link to /tmp
|
|
|
|
rm -rf ${TARGET_DIR}/var/db/dhcpcd/
|
|
|
|
ln -s /tmp ${TARGET_DIR}/var/db/dhcpcd
|
|
|
|
|
2020-11-03 16:37:21 +00:00
|
|
|
# Redirect drobear keys to /tmp
|
|
|
|
rm -rf ${TARGET_DIR}/etc/dropbear
|
|
|
|
ln -s /tmp ${TARGET_DIR}/etc/dropbear
|
|
|
|
|
2020-06-13 22:05:55 +01:00
|
|
|
# Change dropbear init sequence
|
|
|
|
mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear
|