refactor and fix

This commit is contained in:
Daniel Langbein 2021-09-10 15:59:33 +02:00
parent 906beae0d8
commit 91788579dd
12 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
cat
echo '

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
# add amdgpu to MODULES array
sed 's|^MODULES=(|MODULES=(amdgpu |'

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
# 1) and 2) remember last selected entry; 3) disable submenu
sed '

View File

@ -1,5 +1,6 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
cat
# syntax highlighting

View File

@ -3,7 +3,7 @@ _pkgname=pacman
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.2.2
pkgrel=1
pkgrel=2
pkgdesc="pacman with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"

View File

@ -1,9 +1,15 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
# save stdin (content of /etc/mkinitcpio.conf) in variable
stdin="$(cat)"
# Enable parallel downloads
sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
echo "$stdin" | sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
printf '\n'
# Assert multilib is not enabled
! echo "$stdin" | grep --quiet '^\[multilib\].*$'

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
cat
echo '

View File

@ -1,5 +1,6 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
sed 's|Battery {}|//Battery {}|'

View File

@ -1,5 +1,6 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
cat
echo 'enable_pinpad = false'

View File

@ -1,6 +1,7 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
# Decrease size
sed '

View File

@ -1,5 +1,6 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
set -e
echo "NoDisplay=true"