summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-11-29 13:30:30 +0100
committer Eric Hameleers <alien@slackware.com>2015-11-29 13:30:30 +0100
commit444ad5dea5402ff368d3f04faade46e138ad953f (patch)
tree975f093a19f7f0978d39781b7c07a01de36a1a9a /make_slackware_live.sh
parent1ca0f5e3cdee25d8c1cdfeb046dbfdd26d820bc1 (diff)
downloadliveslak-444ad5dea5402ff368d3f04faade46e138ad953f.tar.gz
liveslak-444ad5dea5402ff368d3f04faade46e138ad953f.tar.xz
Add missing '/' which fixes custom hostname configuration.
Patch submitted by Manfred Mueller.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index cdc6dad..1bc297b 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -617,9 +617,9 @@ mount -t overlay -o lowerdir=${RODIRS},upperdir=${INSTDIR},workdir=${LIVE_OVLDIR
# Configure hostname and network:
echo "${LIVE_HOSTNAME}.example.net" > ${LIVE_ROOTDIR}/etc/HOSTNAME
-if [ -f ${LIVE_ROOTDIR}etc/NetworkManager/NetworkManager.conf ]; then
+if [ -f ${LIVE_ROOTDIR}/etc/NetworkManager/NetworkManager.conf ]; then
sed -i -e "s/^hostname=.*/hostname=${LIVE_HOSTNAME}/" \
- ${LIVE_ROOTDIR}etc/NetworkManager/NetworkManager.conf
+ ${LIVE_ROOTDIR}/etc/NetworkManager/NetworkManager.conf
fi
sed -e "s/^\(127.0.0.1\t*\)darkstar.*/\1${LIVE_HOSTNAME}.example.net ${LIVE_HOSTNAME}/" \
-i ${LIVE_ROOTDIR}/etc/hosts