diff options
author | Nico Dietrich | 2006-04-04 21:04:01 +0200 |
---|---|---|
committer | Nico Dietrich | 2006-04-04 21:04:01 +0200 |
commit | 2291d42be23c84a59f1d8ccdc22d2deb4692f0b8 (patch) | |
tree | 35705c467a12cc783a3171c2e6ecdf6c659ea321 /initrd/mkdxsinitrd | |
parent | fix gdm, kdm in debian, ubuntu (diff) | |
download | core-2291d42be23c84a59f1d8ccdc22d2deb4692f0b8.tar.gz core-2291d42be23c84a59f1d8ccdc22d2deb4692f0b8.tar.xz core-2291d42be23c84a59f1d8ccdc22d2deb4692f0b8.zip |
introduce vendor_pre&postinit; inst: only create new config_files when different; portmap in ubuntu
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@153 95ad53e4-c205-0410-b2fa-d234c58c8868
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 |