summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-06-25 19:21:31 +0200
committer Eric Hameleers <alien@slackware.com>2020-06-25 19:21:31 +0200
commit67d057e7e7b83a615cd0c1f2e144db11af936f09 (patch)
tree2ee1a56062ebecefe82aea8dcce90ca7ba944a42
parent864930baf17782129b43dad6f28648cbb73853c6 (diff)
downloadliveslak-67d057e7e7b83a615cd0c1f2e144db11af936f09.tar.gz
liveslak-67d057e7e7b83a615cd0c1f2e144db11af936f09.tar.xz
Make the name "Slackware Live User" configurable
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 0d5b364..e830a6c 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -80,12 +80,18 @@ THEDATE=$(date +%Y%m%d)
# ---------------------------------------------------------------------------
#
+# Distribution name:
+DISTRO=${DISTRO:-"slackware"}
+
# The live username of the image:
LIVEUID=${LIVEUID:-"live"}
# The number of the live account in the image:
LIVEUIDNR=${LIVEUIDNR:-"1000"}
+# The full name of the live account in the image:
+LIVEUIDFN=${LIVEUIDFN:-"${DISTRO^} Live User"}
+
# The root and live user passwords of the image:
ROOTPW=${ROOTPW:-"root"}
LIVEPW=${LIVEPW:-"live"}
@@ -96,9 +102,6 @@ NVUIDNR=${NVUIDNR:-"365"}
NVGRP=${NVFRP:-"nvidia"}
NVGRPNR=${NVUIDNR:-"365"}
-# Distribution name:
-DISTRO=${DISTRO:-"slackware"}
-
# Custom name for the host:
LIVE_HOSTNAME=${LIVE_HOSTNAME:-"darkstar"}
@@ -1468,7 +1471,7 @@ then
fi
# Create a nonprivileged user account (called "live" by default):
-chroot ${LIVE_ROOTDIR} /usr/sbin/useradd -c "Slackware Live User" -g users -G wheel,audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner,kmem,dialout,games,disk,input -u ${LIVEUIDNR} -d /home/${LIVEUID} -m -s /bin/bash ${LIVEUID}
+chroot ${LIVE_ROOTDIR} /usr/sbin/useradd -c "${LIVEUIDFN}" -g users -G wheel,audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner,kmem,dialout,games,disk,input -u ${LIVEUIDNR} -d /home/${LIVEUID} -m -s /bin/bash ${LIVEUID}
echo "${LIVEUID}:${LIVEPW}" | chroot ${LIVE_ROOTDIR} /usr/sbin/chpasswd
# Configure suauth if we are not on a PAM system (where this does not work):