--- trunk/mlivecdbuild/mlivecdbuild.sh 2005/07/03 17:14:00 143 +++ trunk/mlivecdbuild/mlivecdbuild.sh 2005/07/03 17:17:35 144 @@ -144,6 +144,9 @@ ## needed empty files (to prevent warnings only) touch ${CDCHROOTDIR}/etc/env.d/dummy || die touch ${CDCHROOTDIR}/etc/profile || die + mkdir -p ${CDCHROOTDIR}/etc/rc.d/init.d || die + touch ${CDCHROOTDIR}/etc/rc.d/init.d/functions || die + ln -snf /etc/rc.d/init.d ${CDCHROOTDIR}/etc/init.d || die if [ -n "${DIE}" ] then @@ -530,7 +533,7 @@ rm -f ${LIVECDROOT}/${CDISONAME} fi - #fixes some issues with xfree/xorg xkb + # fixes some issues with xfree/xorg xkb if [ -L "${CDCHROOTDIR}/etc/X11/xkb" -a -d "/usr/X11R6/lib/X11/xkb" ] then mecho fixing xkb symlink @@ -561,29 +564,29 @@ cat ${CDLAYOUTDIR}/issue > \ ${CDCHROOTDIR}/etc/issue && \ chmod 0644 ${CDCHROOTDIR}/etc/issue && \ - echo "HOSTNAME=\"${CDHOSTNAME}\"" > ${CDCHROOTDIR}/etc/hostname ) + echo "${CDHOSTNAME}" > ${CDCHROOTDIR}/etc/hostname ) evaluate_retval mecho Setting up services ... ( cat >> ${CDCHROOTDIR}/root/.bashrc << "EOF" - #change mountfs with mountfslivecd + # change mountfs with mountfslivecd rc-config del mountfs rc-config add mountfslivecd - #add hardware detection + # add hardware detection rc-config add hwdetect - #del checkfs + # del checkfs rc-config del checkfs #exit exit EOF - #run it + # run it enter_chroot - #clean up + # clean up if [ -e ${CDCHROOTDIR}/root/.bashrc ] then rm ${CDCHROOTDIR}/root/.bashrc @@ -610,7 +613,7 @@ exit EOF - #run it + # run it enter_chroot if [ -e ${CDCHROOTDIR}/root/.bashrc ] then