parent
abb495bd6a
commit
dc984fe687
@ -0,0 +1,32 @@ |
||||
echo run helpme for a list of commands |
||||
helpme(){ |
||||
echo "'register package_name' - to register package" |
||||
echo "'register-g group-name' - to register group" |
||||
echo "'list' - to list registered packages" |
||||
echo "'iso-make' - to build iso" |
||||
} |
||||
register(){ |
||||
rm -rf /var/cache/pacman/pkg/* |
||||
pactree -s -u $1 > /tmp/temporary |
||||
pacman -Sp --noconfirm - < /tmp/temporary > /arch/pkgs/$1 |
||||
} |
||||
register-g(){ |
||||
mkdir /arch/pkgs/$1 |
||||
rm -rf /var/cache/pacman/pkg/* |
||||
pacman -Sg $1 > /tmp/temporary |
||||
sed -i -e 's/^/register2 /' /tmp/temporary |
||||
bash /tmp/temporary |
||||
} |
||||
list(){ |
||||
ls /arch/pkgs/ |
||||
} |
||||
iso-make(){ |
||||
mkdir /usr/share/archiso/configs/releng/airootfs/root/pkg/ |
||||
touch /usr/share/archiso/configs/releng/airootfs/root/install.list |
||||
rm -rf /usr/share/archiso/configs/releng/airootfs/root/* |
||||
rm -rf /iso/* |
||||
pkgdown |
||||
cp -r /arch/scripts/* /usr/share/archiso/configs/releng/airootfs/root/ |
||||
mkarchiso -v -w /iso -o /out /usr/share/archiso/configs/releng |
||||
} |
||||
|
||||
@ -0,0 +1,24 @@ |
||||
#!/bin/bash |
||||
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 |
||||
wget -nc -i /tmp/tgl -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ |
||||
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 |
||||
wget -nc -i /arch/pkgs/$pswap -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ |
||||
fi |
||||
pkgdown |
||||
fi |
||||
Loading…
Reference in new issue