summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-02-20 00:29:56 +0100
committer Eric Hameleers <alien@slackware.com>2020-02-20 00:29:56 +0100
commit227739f15a0504a99ef7ad7db82b40d15e510c05 (patch)
tree6cde2bde9cabd36310d7db3bd9c132126e1701a9 /make_slackware_live.sh
parenteb6350692ddf11d9ababf90d61b8b0e612c724a0 (diff)
downloadliveslak-227739f15a0504a99ef7ad7db82b40d15e510c05.tar.gz
liveslak-227739f15a0504a99ef7ad7db82b40d15e510c05.tar.xz
make_slackware_live.sh code to transform the new templates into scripts
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh12
1 files changed, 11 insertions, 1 deletions
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" \