summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-02-15 12:15:42 +0100
committer Eric Hameleers <alien@slackware.com>2016-02-15 12:15:42 +0100
commit4d65935e7030c1b75a25727d2f2c5fbb106e94d1 (patch)
treee53175caf842977fba91206281f8dd964d6ad4e6 /make_slackware_live.sh
parentd5c3fad34e0dcada728c58011c86414a3e9bd748 (diff)
downloadliveslak-4d65935e7030c1b75a25727d2f2c5fbb106e94d1.tar.gz
liveslak-4d65935e7030c1b75a25727d2f2c5fbb106e94d1.tar.xz
Enable more customization: configure your own LIVEDE.
A new sample configuration file 'make_slackware_live.conf' shows a commented-out example of how to use the variables LIVEDE, SEQ_CUSTOM and a function "custom_config()" to create a Slackware Live variant which is not covered by the available variants SLACKWARE, XFCE, KDE4, PLASMA5, MATE or CINNAMON.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh25
1 files changed, 23 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index c76e31d..b80d9ae 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -689,7 +689,13 @@ case "$LIVEDE" in
PLASMA5) MSEQ="${SEQ_PLASMA5}" ;;
MATE) MSEQ="${SEQ_MSB}" ;;
CINNAMON) MSEQ="${SEQ_CIN}" ;;
- *) echo "** Unsupported configuration '$LIVEDE'"; exit 1 ;;
+ *) if [ -n "${SEQ_CUSTOM}" ]; then
+ # Custom distribution with a predefined package list:
+ MSEQ="${SEQ_CUSTOM}"
+ else
+ echo "** Unsupported configuration '$LIVEDE'"; exit 1
+ fi
+ ;;
esac
# Do we need to create/include additional module(s) defined by a pkglist:
@@ -1172,12 +1178,27 @@ EOGL
# Workaround a bug where SDDM does not always use the configured keymap:
echo "setxkbmap" >> ${LIVE_ROOTDIR}/usr/share/sddm/scripts/Xsetup
-
+
# Do not show the blueman applet, Plasma5 has its own BlueTooth widget:
echo "NotShowIn=KDE;" >> ${LIVE_ROOTDIR}/etc/xdg/autostart/blueman.desktop
fi # End LIVEDE = PLASMA5
+# You can define the function 'custom_config()' by uncommenting it in
+# the configuration file 'make_slackware_live.conf'.
+if type custom_config 1>/dev/null 2>/dev/null ; then
+
+ # -------------------------------------------------------------------------- #
+ echo "-- Configuring ${LIVEDE} by calling 'custom_config()'."
+ # -------------------------------------------------------------------------- #
+
+ # This is particularly useful if you defined a non-standard "LIVEDE"
+ # in 'make_slackware_live.conf', in which case you must specify your custom
+ # package sequence in the variable "SEQ_CUSTOM" in that same .conf file.
+ custom_config
+
+fi
+
# Workaround a bug where our Xkbconfig is not loaded sometimes:
echo "setxkbmap" > ${LIVE_ROOTDIR}/home/live/.xprofile