remove /var/db/dhcpcd dir and link to /tmp

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2020-11-04 18:28:39 +01:00
parent 4d5c54164b
commit 0f38d4ebe5
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,10 @@ rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
rm -rf ${TARGET_DIR}/var/lib/dhcp/ rm -rf ${TARGET_DIR}/var/lib/dhcp/
ln -s /tmp ${TARGET_DIR}/var/lib/dhcp ln -s /tmp ${TARGET_DIR}/var/lib/dhcp
# Remove dhcpcd dir and link to /tmp
rm -rf ${TARGET_DIR}/var/db/dhcpcd/
ln -s /tmp ${TARGET_DIR}/var/db/dhcpcd
# Redirect drobear keys to /tmp # Redirect drobear keys to /tmp
rm -rf ${TARGET_DIR}/etc/dropbear rm -rf ${TARGET_DIR}/etc/dropbear
ln -s /tmp ${TARGET_DIR}/etc/dropbear ln -s /tmp ${TARGET_DIR}/etc/dropbear

View File

@ -11,6 +11,10 @@ rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
rm -rf ${TARGET_DIR}/var/lib/dhcp/ rm -rf ${TARGET_DIR}/var/lib/dhcp/
ln -s /tmp ${TARGET_DIR}/var/lib/dhcp ln -s /tmp ${TARGET_DIR}/var/lib/dhcp
# Remove dhcpcd dir and link to /tmp
rm -rf ${TARGET_DIR}/var/db/dhcpcd/
ln -s /tmp ${TARGET_DIR}/var/db/dhcpcd
# Change dropbear init sequence # Change dropbear init sequence
mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear