#!/bin/bash touch /tmp/cll echo "" > /tmp/cll declare -a programs ls /arch/pkgs > /tmp/temporary33 echo done >> /tmp/temporary33 sed -e 's/$/ +/' -i /tmp/temporary33 programs=(`cat /tmp/temporary33`) pswap=$(whiptail --title "Select package to add to iso" --menu "Select package to add to iso" 16 78 10 "${programs[@]}" 3>&1 1>&2 2>&3 3>&-) if [ $pswap != done ]; then if [ $(file /arch/pkgs/$pswap | cut -f 2 -d ' ') == directory ]; then echo d cat /arch/pkgs/$pswap/* > /tmp/tgl ls /arch/pkgs/$pswap/ >> /usr/share/archiso/configs/releng/airootfs/root/install.list cat /tmp/tgl >> /tmp/cll fi if [ $(file /arch/pkgs/$pswap | cut -f 2 -d ' ') != directory ]; then echo f echo $pswap >> /usr/share/archiso/configs/releng/airootfs/root/install.list cat /arch/pkgs/$pswap >> /tmp/cll fi pkgdown fi wget -nc -i /tmp/cll -P /usr/share/archiso/configs/releng/airootfs/root/pkg/