Files
ports/scripts/makeisoxorg.sh
2021-01-08 15:56:20 +08:00

32 lines
660 B
Bash
Executable File

#!/bin/sh
as_root()
{
if [ $(id -u) = 0 ]; then
$*
elif [ -x /usr/bin/sudo ]; then
sudo $*
else
su -c \\"$*\\"
fi
}
PORTSDIR="$(dirname $(dirname $(realpath $0)))"
SCRIPTDIR="$(dirname $(realpath $0))"
[ -f $SCRIPTDIR/config ] && . $SCRIPTDIR/config
MUST_PKG="wpa_supplicant os-prober grub" # must have pkg in the iso
XORG_PKG="xorg xorg-video-drivers xf86-input-libinput" # xorg stuff in the iso
outputiso="$PORTSDIR/venomlinux-xorg-$(date +"%Y%m%d").iso"
pkgs="$(echo $MUST_PKG $XORG_PKG | tr ' ' ',')"
as_root $SCRIPTDIR/build.sh \
-zap \
-iso \
-outputiso="$outputiso" \
-pkg="$pkgs" || exit 1
exit 0