16 lines
669 B
Bash
Executable File
16 lines
669 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Add swap partition to fstab
|
|
sed -i '/^\/swap/d' "${TARGET_DIR}/etc/fstab"
|
|
echo "/swap none swap defaults 0 0" >> "${TARGET_DIR}/etc/fstab"
|
|
|
|
# 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
|
|
|
|
# Change dropbear init sequence
|
|
mv ${TARGET_DIR}/etc/init.d/S50dropbear ${TARGET_DIR}/etc/init.d/S42dropbear
|