Added method for installing packages from urls.
This commit is contained in:
parent
a3c1aa3bf7
commit
04ed33a4e2
@ -5,6 +5,18 @@ install_package() {
|
||||
yay --sudoflags "${sudoFlags[@]}" --sudoloop --needed --noconfirm -Sy "$@"
|
||||
}
|
||||
|
||||
url_install() {
|
||||
local url="$1"
|
||||
local tmpfile
|
||||
tmpfile=$(mktemp /tmp/pkg.XXXXXX.pkg.tar.xz)
|
||||
# Make sure system is up to date
|
||||
yay --sudoflags "${sudoFlags[@]}" --sudoloop --noconfirm -Syu
|
||||
if curl -fL --retry 10 -o "$tmpfile" "$url"; then
|
||||
yay --sudoflags "${sudoFlags[@]}" --sudoloop --noconfirm -U "$tmpfile"
|
||||
fi
|
||||
rm -f "$tmpfile"
|
||||
}
|
||||
|
||||
restart() {
|
||||
if dialog --clear --backtitle "Stormux" --yesno "Would you like to reboot now to apply changes?" 10 80 ; then
|
||||
sudo "${sudoFlags[@]}" reboot
|
||||
|
@ -23,7 +23,7 @@ fi
|
||||
|
||||
# replace xf86-video-dummy with xf86-video-dummy-with-vt
|
||||
yay --noconfirm -Rdd xf86-video-dummy
|
||||
yay --noconfirm -Sy --needed xf86-video-dummy-with-vt --mflags --skippgpcheck
|
||||
url_install 'https://stormux.org/packages/xf86-video-dummy-with-vt-0.4.1-1-aarch64.pkg.tar.xz'
|
||||
|
||||
# Configure nodm
|
||||
sudo sed -i "s/{user}/$USER/g" /etc/nodm.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user