Cleanup and update stuff

This commit is contained in:
Tobias Reisinger 2023-07-02 13:42:44 +02:00
parent 8364becef3
commit b9d5b166f4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
25 changed files with 253 additions and 93 deletions
arch-portable

View file

@ -32,25 +32,15 @@ sha256sums=(
)
backup=()
_sed_path() {
echo "$1" | sed -e "s/\//_/g"
}
_install() {
temp_pkg=$1
temp_src=$(_sed_path "$temp_pkg")
# shellcheck disable=SC2154
install "-Dm${2:-644}" "${srcdir}/${temp_src}" "${pkgdir}/${temp_pkg}"
}
. ../utils.sh
package() {
_install "boot/loader/entries/portable.conf" "755"
_install "boot/loader/loader.conf" "755"
_system_install "boot/loader/entries/portable.conf" "755"
_system_install "boot/loader/loader.conf" "755"
_install "etc/fstab"
_install "etc/hostname"
_install "etc/systemd/network/20-wired.network"
_system_install "etc/fstab"
_system_install "etc/hostname"
_system_install "etc/systemd/network/20-wired.network"
}
# vim: ft=sh