diff options
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 |
commit | 444ad5dea5402ff368d3f04faade46e138ad953f (patch) | |
tree | 975f093a19f7f0978d39781b7c07a01de36a1a9a | |
parent | 1ca0f5e3cdee25d8c1cdfeb046dbfdd26d820bc1 (diff) | |
download | liveslak-444ad5dea5402ff368d3f04faade46e138ad953f.tar.gz liveslak-444ad5dea5402ff368d3f04faade46e138ad953f.tar.xz |
Add missing '/' which fixes custom hostname configuration.
Patch submitted by Manfred Mueller.
-rwxr-xr-x | make_slackware_live.sh | 4 |
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 |