diff options
Diffstat (limited to 'initrd/mkdxsinitrd')
-rwxr-xr-x | initrd/mkdxsinitrd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd index 63903a51..0f56dc8c 100755 --- a/initrd/mkdxsinitrd +++ b/initrd/mkdxsinitrd @@ -479,7 +479,7 @@ done chmod 755 ${INSTDIR}/init \ ${INSTDIR}/bin/{servconfig,hwautocfg,screenres,dhcpmkconfig} -# finally add the common client configuration file +# add the common client configuration file if [ -f /etc/dxs/client.cfg/machine-setup.default ] ; then cp /etc/dxs/client.cfg/machine-setup.default \ ${INSTDIR}/etc/machine-setup @@ -492,6 +492,13 @@ else disabled\nroot_pw='"'$1$T7VD/mmQ$aCP1WEaWplEsHe9khv4kK.'"'" > ${INSTDIR}/etc/machine-setup fi +# finally copy vendor-supplied preinit and postinit files +for i in vendor_preinit vendor_postinit ; do + if [ -f /etc/dxs/init.local/"${i}" ] ; then + cp /etc/dxs/init.local/"$i" ${INSTDIR}/bin/"$i" + fi +done + ######################################################################### # End of file copy procedures |