From 227739f15a0504a99ef7ad7db82b40d15e510c05 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 20 Feb 2020 00:29:56 +0100 Subject: make_slackware_live.sh code to transform the new templates into scripts --- make_slackware_live.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 2759c7b..777f33a 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1672,7 +1672,17 @@ if ls ${LIVE_ROOTDIR}/boot/vmlinuz-huge-* 1>/dev/null 2>/dev/null; then fi # Fix some occurrences of '/usr/lib/setup/' that are covered by $PATH: sed -i -e 's,/usr/lib/setup/,,g' -e 's,:/usr/lib/setup,:/usr/share/${LIVEMAIN},g' ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/* - # Add the Slackware Live HD installer: + # Add the Slackware Live HD installer scripts: + for USCRIPT in SeTuacct SeTudiskpart SeTupass ; do + cat ${LIVE_TOOLDIR}/${USCRIPT}.tpl | sed \ + -e "s/@DISTRO@/$DISTRO/g" \ + -e "s/@CDISTRO@/${DISTRO^}/g" \ + -e "s/@UDISTRO@/${DISTRO^^}/g" \ + -e "s/@LIVEDE@/$LIVEDE/g" \ + -e "s/@SL_VERSION@/$SL_VERSION/g" \ + > ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/${USCRIPT} + chmod 755 ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/${USCRIPT} + done mkdir -p ${LIVE_ROOTDIR}/usr/local/sbin cat ${LIVE_TOOLDIR}/setup2hd.tpl | sed \ -e "s/@DIRSUFFIX@/$DIRSUFFIX/g" \ -- cgit v1.2.3