#!/bin/sh
. ./01_SetVariables.sh
#!/bin/sh
if [ ! "$(id -u)" -eq 0 ]; then
  echo "Please execute this script as root."
  exit
fi
	spkg -i --root "$DEST" "$ISODIR"/slint/spkg*txz
	spkg -i --root "$DEST" "$ISODIR"/slint/swapinzram*txz
	spkg -i --root "$DEST" "$ISODIR"/slint/xz*txz
	spkg -i --root "$DEST" "$ISODIR"/slint/gettext-0*txz
    # "packages" includes packages only needed in the installer
	spkg -i --root "$DEST" "$ROOTDIR"/packages/*txz
	echo '#Empty file' > /"$DEST"/etc/asound.conf
	rm -rf "$DEST"/usr/lib64/python*
	rm -rf "$DEST"/usr/doc/*
	rm -rf "$DEST"/usr/man/*
	rm -f "$DEST"/usr/bin/sndfile*
	rm -f "$DEST"/usr/bin/dbus-launch
