mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
refactor and fix
This commit is contained in:
parent
906beae0d8
commit
91788579dd
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
cat
|
cat
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
# add amdgpu to MODULES array
|
# add amdgpu to MODULES array
|
||||||
sed 's|^MODULES=(|MODULES=(amdgpu |'
|
sed 's|^MODULES=(|MODULES=(amdgpu |'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
# 1) and 2) remember last selected entry; 3) disable submenu
|
# 1) and 2) remember last selected entry; 3) disable submenu
|
||||||
sed '
|
sed '
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'
|
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
cat
|
cat
|
||||||
|
|
||||||
# syntax highlighting
|
# syntax highlighting
|
||||||
|
@ -3,7 +3,7 @@ _pkgname=pacman
|
|||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.2.2
|
pkgver=0.2.2
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="pacman with configuration"
|
pkgdesc="pacman with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://codeberg.org/privacy1st/${_reponame}"
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# save stdin (content of /etc/mkinitcpio.conf) in variable
|
||||||
|
stdin="$(cat)"
|
||||||
|
|
||||||
# Enable parallel downloads
|
# Enable parallel downloads
|
||||||
sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
|
echo "$stdin" | sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
|
||||||
|
|
||||||
|
printf '\n'
|
||||||
|
|
||||||
# Assert multilib is not enabled
|
# Assert multilib is not enabled
|
||||||
! echo "$stdin" | grep --quiet '^\[multilib\].*$'
|
! echo "$stdin" | grep --quiet '^\[multilib\].*$'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
cat
|
cat
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
sed 's|Battery {}|//Battery {}|'
|
sed 's|Battery {}|//Battery {}|'
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
cat
|
cat
|
||||||
echo 'enable_pinpad = false'
|
echo 'enable_pinpad = false'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
# Decrease size
|
# Decrease size
|
||||||
sed '
|
sed '
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# stdin: default config
|
# stdin: default config
|
||||||
# stdout: modified config
|
# stdout: modified config
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "NoDisplay=true"
|
echo "NoDisplay=true"
|
||||||
|
Loading…
Reference in New Issue
Block a user