diff options
Diffstat (limited to 'configs/releng-openrc/airootfs')
28 files changed, 0 insertions, 802 deletions
diff --git a/configs/releng-openrc/airootfs/etc/NetworkManager/dispatcher.d/reflector b/configs/releng-openrc/airootfs/etc/NetworkManager/dispatcher.d/reflector deleted file mode 100755 index 76e84dd..0000000 --- a/configs/releng-openrc/airootfs/etc/NetworkManager/dispatcher.d/reflector +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ "$2" == up ] && ! grep -qoP 'mirror=\K\S+' /proc/cmdline; then - reflector \ - --save /etc/pacman.d/mirrorlist \ - --protocol https \ - --latest 20 \ - --sort rate -fi diff --git a/configs/releng-openrc/airootfs/etc/conf.d/agetty.tty1 b/configs/releng-openrc/airootfs/etc/conf.d/agetty.tty1 deleted file mode 100644 index 997909c..0000000 --- a/configs/releng-openrc/airootfs/etc/conf.d/agetty.tty1 +++ /dev/null @@ -1,3 +0,0 @@ -baud="38400" -term_type="linux" -agetty_options="--autologin root --noclear" diff --git a/configs/releng-openrc/airootfs/etc/conf.d/hostname b/configs/releng-openrc/airootfs/etc/conf.d/hostname deleted file mode 100644 index 5a912cd..0000000 --- a/configs/releng-openrc/airootfs/etc/conf.d/hostname +++ /dev/null @@ -1 +0,0 @@ -hostname="parabolaiso" diff --git a/configs/releng-openrc/airootfs/etc/elogind/logind.conf.d/do-not-suspend.conf b/configs/releng-openrc/airootfs/etc/elogind/logind.conf.d/do-not-suspend.conf deleted file mode 100644 index f3ecb39..0000000 --- a/configs/releng-openrc/airootfs/etc/elogind/logind.conf.d/do-not-suspend.conf +++ /dev/null @@ -1,4 +0,0 @@ -[Login] -HandleSuspendKey=ignore -HandleHibernateKey=ignore -HandleLidSwitch=ignore diff --git a/configs/releng-openrc/airootfs/etc/fstab b/configs/releng-openrc/airootfs/etc/fstab deleted file mode 100644 index e69de29..0000000 --- a/configs/releng-openrc/airootfs/etc/fstab +++ /dev/null diff --git a/configs/releng-openrc/airootfs/etc/local.d/choose-mirror.start b/configs/releng-openrc/airootfs/etc/local.d/choose-mirror.start deleted file mode 100755 index be4293c..0000000 --- a/configs/releng-openrc/airootfs/etc/local.d/choose-mirror.start +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# Choose mirror from the kernel command line -grep -qoP 'mirror=\K\S+' /proc/cmdline && /usr/local/bin/choose-mirror diff --git a/configs/releng-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start b/configs/releng-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start deleted file mode 100755 index 8a7139a..0000000 --- a/configs/releng-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# Temporary /etc/pacman.d/gnupg directory -fstype="$(findmnt /etc/pacman.d/gnupg -o FSTYPE -Un)" - -test -d /etc/pacman.d/gnupg || mkdir /etc/pacman.d/gnupg -if ! [[ "$fstype" == tmpfs ]]; then - mount -o mode=0755 -t tmpfs tmpfs /etc/pacman.d/gnupg -fi diff --git a/configs/releng-openrc/airootfs/etc/local.d/livecd-talk.start b/configs/releng-openrc/airootfs/etc/local.d/livecd-talk.start deleted file mode 100755 index 69a8cc4..0000000 --- a/configs/releng-openrc/airootfs/etc/local.d/livecd-talk.start +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if grep -qo 'accessibility=on' /proc/cmdline; then - livecd-sound -u - chvt 13 - livecd-sound -p - chvt 1 - rc-service espeakup start -fi diff --git a/configs/releng-openrc/airootfs/etc/local.d/pacman-init.start b/configs/releng-openrc/airootfs/etc/local.d/pacman-init.start deleted file mode 100755 index fcb588d..0000000 --- a/configs/releng-openrc/airootfs/etc/local.d/pacman-init.start +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# Initializes Pacman keyring -if ! find /etc/pacman.d/gnupg -mindepth 1 2>/dev/null | read -r; then - pacman-key --init - pacman-key --populate -fi diff --git a/configs/releng-openrc/airootfs/etc/locale.conf b/configs/releng-openrc/airootfs/etc/locale.conf deleted file mode 100644 index 01ec548..0000000 --- a/configs/releng-openrc/airootfs/etc/locale.conf +++ /dev/null @@ -1 +0,0 @@ -LANG=en_US.UTF-8 diff --git a/configs/releng-openrc/airootfs/etc/localtime b/configs/releng-openrc/airootfs/etc/localtime deleted file mode 120000 index 0e35b57..0000000 --- a/configs/releng-openrc/airootfs/etc/localtime +++ /dev/null @@ -1 +0,0 @@ -/usr/share/zoneinfo/UTC
\ No newline at end of file diff --git a/configs/releng-openrc/airootfs/etc/mkinitcpio.conf b/configs/releng-openrc/airootfs/etc/mkinitcpio.conf deleted file mode 100644 index d637173..0000000 --- a/configs/releng-openrc/airootfs/etc/mkinitcpio.conf +++ /dev/null @@ -1,67 +0,0 @@ -# vim:set ft=sh -# MODULES -# The following modules are loaded before any boot hooks are -# run. Advanced users may wish to specify all system modules -# in this array. For instance: -# MODULES=(piix ide_disk reiserfs) -MODULES=(loop speakup_soft) - -# BINARIES -# This setting includes any additional binaries a given user may -# wish into the CPIO image. This is run last, so it may be used to -# override the actual binaries included by a given hook -# BINARIES are dependency parsed, so you may safely ignore libraries -BINARIES=() - -# FILES -# This setting is similar to BINARIES above, however, files are added -# as-is and are not parsed in any way. This is useful for config files. -FILES=() - -# HOOKS -# This is the most important setting in this file. The HOOKS control the -# modules and scripts added to the image, and what happens at boot time. -# Order is important, and it is recommended that you do not change the -# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for -# help on a given hook. -# 'base' is _required_ unless you know precisely what you are doing. -# 'udev' is _required_ in order to automatically load modules -# 'filesystems' is _required_ unless you specify your fs modules in MODULES -# Examples: -## This setup specifies all modules in the MODULES setting above. -## No raid, lvm2, or encrypted root is needed. -# HOOKS=(base) -# -## This setup will autodetect all modules for your system and should -## work as a sane default -# HOOKS=(base udev autodetect block filesystems) -# -## This setup will generate a 'full' image which supports most systems. -## No autodetection is done. -# HOOKS=(base udev block filesystems) -# -## This setup assembles a pata mdadm array with an encrypted root FS. -## Note: See 'mkinitcpio -H mdadm' for more information on raid devices. -# HOOKS=(base udev block mdadm encrypt filesystems) -# -## This setup loads an lvm2 volume group on a usb device. -# HOOKS=(base udev block lvm2 filesystems) -# -## NOTE: If you have /usr on a separate partition, you MUST include the -# usr, fsck and shutdown hooks. -HOOKS=(base udev modconf memdisk parabolaiso_shutdown parabolaiso parabolaiso_loop_mnt parabolaiso_pxe_common parabolaiso_pxe_nbd parabolaiso_pxe_http parabolaiso_pxe_nfs parabolaiso_kms block filesystems keyboard) - -# COMPRESSION -# Use this to compress the initramfs image. By default, gzip compression -# is used. Use 'cat' to create an uncompressed image. -#COMPRESSION="gzip" -#COMPRESSION="bzip2" -#COMPRESSION="lzma" -COMPRESSION="xz" -#COMPRESSION="lzop" -#COMPRESSION="lz4" -#COMPRESSION="zstd" - -# COMPRESSION_OPTIONS -# Additional options for the compressor -#COMPRESSION_OPTIONS=() diff --git a/configs/releng-openrc/airootfs/etc/mkinitcpio.d/linux-libre.preset b/configs/releng-openrc/airootfs/etc/mkinitcpio.d/linux-libre.preset deleted file mode 100644 index 625a03d..0000000 --- a/configs/releng-openrc/airootfs/etc/mkinitcpio.d/linux-libre.preset +++ /dev/null @@ -1,8 +0,0 @@ -# mkinitcpio preset file for the 'linux-libre' package on parabolaiso - -PRESETS=('parabolaiso') - -ALL_kver='/boot/vmlinuz-linux-libre' -ALL_config='/etc/mkinitcpio.conf' - -parabolaiso_image="/boot/initramfs-linux-libre.img" diff --git a/configs/releng-openrc/airootfs/etc/motd b/configs/releng-openrc/airootfs/etc/motd deleted file mode 100644 index ee664e2..0000000 --- a/configs/releng-openrc/airootfs/etc/motd +++ /dev/null @@ -1,9 +0,0 @@ -To install [35mParabola GNU/Linux-libre[0m follow the installation guide: -https://wiki.parabola.nu/Installation_Guide - -For Wi-Fi, authenticate to the wireless network using the [35mnmtui-connect[0m utility. -For mobile broadband (WWAN) modems, connect with the [35mmmcli[0m utility. -Ethernet, WLAN and WWAN interfaces using DHCP should work automatically. - -After connecting to the internet, the installation guide can be accessed -via the convenience script [35mInstallation_guide[0m. diff --git a/configs/releng-openrc/airootfs/etc/pacman.conf b/configs/releng-openrc/airootfs/etc/pacman.conf deleted file mode 100644 index b7e4663..0000000 --- a/configs/releng-openrc/airootfs/etc/pacman.conf +++ /dev/null @@ -1,184 +0,0 @@ -# -# /etc/pacman.conf -# -# See the pacman.conf(5) manpage for option and repository directives - -# -# GENERAL OPTIONS -# -[options] -# The following paths are commented out with their default values listed. -# If you wish to use different paths, uncomment and update the paths. -#RootDir = / -#DBPath = /var/lib/pacman/ -#CacheDir = /var/cache/pacman/pkg/ -#LogFile = /var/log/pacman.log -#GPGDir = /etc/pacman.d/gnupg/ -#HookDir = /etc/pacman.d/hooks/ -HoldPkg = pacman glibc -#XferCommand = /usr/bin/curl -L -C - -f -o %o %u -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u -#CleanMethod = KeepInstalled -Architecture = auto - -# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup -#IgnorePkg = -#IgnoreGroup = - -#NoUpgrade = -#NoExtract = - -# Misc options -#UseSyslog -#Color -#NoProgressBar -CheckSpace -#VerbosePkgLists - -# By default, pacman accepts packages signed by keys that its local keyring -# trusts (see pacman-key and its man page), as well as unsigned packages. -SigLevel = Required DatabaseOptional -LocalFileSigLevel = Optional -#RemoteFileSigLevel = Required - -# NOTE: You must run `pacman-key --init` before first using pacman; the local -# keyring can then be populated with the keys of all trusted packagers with: -# `pacman-key --populate archlinux archlinux32 archlinuxarm parabola`. - -# -# REPOSITORIES -# - can be defined here or included from another file -# - pacman will search repositories in the order defined here -# - local/custom mirrors can be added here or in separate files -# - repositories listed first will take precedence when packages -# have identical names, regardless of version number -# - URLs will have $repo replaced by the name of the current repo -# - URLs will have $arch replaced by the name of the architecture -# -# Repository entries are of the format: -# [repo-name] -# Server = ServerName -# Include = IncludePath -# -# The header [repo-name] is crucial - it must be present and -# un-commented to enable the repo. -# -# Some repositories are disabled by default. To enable them, un-comment the -# repo name header (e.g. '[nonprism]') and the following 'Include' line. -# You can add preferred servers for each repo between the header and "Include" line, -# according to the format in /etc/pacman.d/mirrorlist, -# and those will be preferred over the standard mirrors for that repo. -# -# The order in which these entries appear in this file is critical. -# Much of the Parabola magic that supports advanced features such as -# multiple init-systems and multiple layers of freedom and privacy, -# depends on the order in which these repos are defined. -# Moving or adding repos out of the expected order can make your system insane. - -# Notes on special repositories: -# -# Non-prism is a repository for enhanced privacy, beyond the FSDG requirements. -# It contains specially patched versions of certain software from the standard repos, -# that are known to include privacy-sensative features that some people may want to use, -# but that others may consider to be undesirable anti-features. -# For more info see: https://wiki.parabola.nu/Nonprism -# -# The non-systemd repository contains packages that are important and relevant only to -# Parabola systems using an init-system other than systemd. -# Parabola systems using systemd SHOULD NOT have this enabled;. -# while Parabola systems using any other init-system SHOULD have this enabled. -# -# The kernels repository contains additional special kernels for particular use-cases, -# such as maximal security hardening and real-time systems. -# -# The PCR (Parabola Community Repository) contains additional packages, -# most often requested by Parabola users, that are not considered to be -# part of the standard Parabola/Arch system, but are nonetheless useful or fun. -# -# Multi-lib repositories allow 32-bit applications to run on x86_64 systems. -# -# The Parabola system also supports custom, user-defined, repositories; -# but be aware that the Parabola team can not recommend nor support their use. -# The Parabola team can only support the use of software that is published by Parabola. -# The use of third-party software is discouraged with a "use at your own risk" warning. -# These may be community-maintained or maintained privately by the local user or sysadmin. -# They may be hosted on the internet, on the local network, or only on the local computer. -# An example of a custom package repository is given below -# in the "User-defined repos" section -# See the pacman manpage for details on creating your own repositories. - - -########################### -# Parabola standard repos # -########################### - -#[nonprism-testing] -#Include = /etc/pacman.d/mirrorlist - -#[nonprism] -#Include = /etc/pacman.d/mirrorlist - -#[nonsystemd-testing] -#Include = /etc/pacman.d/mirrorlist - -[nonsystemd] -Include = /etc/pacman.d/mirrorlist - -#[libre-testing] -#Include = /etc/pacman.d/mirrorlist - -[libre] -Include = /etc/pacman.d/mirrorlist - -#[kernels-testing] -#Include = /etc/pacman.d/mirrorlist - -#[kernels] -#Include = /etc/pacman.d/mirrorlist - - -####################### -# Arch standard repos # -####################### - -#[testing] -#Include = /etc/pacman.d/mirrorlist - -[core] -Include = /etc/pacman.d/mirrorlist - -[extra] -Include = /etc/pacman.d/mirrorlist - -#[community-testing] -#Include = /etc/pacman.d/mirrorlist - -[community] -Include = /etc/pacman.d/mirrorlist - - -###################### -# Supplemental repos # -###################### - -#[pcr-testing] -#Include = /etc/pacman.d/mirrorlist - -[pcr] -Include = /etc/pacman.d/mirrorlist - - -###################### -# User-defined repos # -###################### - -#[custom] -#SigLevel = Optional TrustAll -#Server = file:///home/custompkgs - - -############## -# Over-rides # -############## - -Include = /etc/pacman.d/*.conf diff --git a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook b/configs/releng-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook deleted file mode 100644 index 82dd199..0000000 --- a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook +++ /dev/null @@ -1,13 +0,0 @@ -# remove from airootfs! -[Trigger] -Operation = Install -Type = Package -Target = glibc - -[Action] -Description = Uncommenting en_US.UTF-8 locale and running locale-gen... -When = PostTransaction -Depends = glibc -Depends = sed -Depends = sh -Exec = /bin/sh -c "sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen && locale-gen" diff --git a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook b/configs/releng-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook deleted file mode 100644 index ad0b5ba..0000000 --- a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook +++ /dev/null @@ -1,12 +0,0 @@ -[Trigger] -Operation = Install -Operation = Upgrade -Type = Package -Target = pacman-mirrorlist - -[Action] -Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist... -When = PostTransaction -Depends = pacman-mirrorlist -Depends = sed -Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist diff --git a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook b/configs/releng-openrc/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook deleted file mode 100644 index 8dfb943..0000000 --- a/configs/releng-openrc/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook +++ /dev/null @@ -1,18 +0,0 @@ -# remove from airootfs! -# As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process. -# If not, they would be used when pacstrap is run in the live environment. - -[Trigger] -Operation = Install -Operation = Upgrade -Operation = Remove -Type = Package -Target = * - -[Action] -Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build... -When = PostTransaction -Depends = sh -Depends = coreutils -Depends = grep -Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)" diff --git a/configs/releng-openrc/airootfs/etc/passwd b/configs/releng-openrc/airootfs/etc/passwd deleted file mode 100644 index 2807d5d..0000000 --- a/configs/releng-openrc/airootfs/etc/passwd +++ /dev/null @@ -1 +0,0 @@ -root:x:0:0:root:/root:/usr/bin/zsh diff --git a/configs/releng-openrc/airootfs/etc/runlevels/default/NetworkManager b/configs/releng-openrc/airootfs/etc/runlevels/default/NetworkManager deleted file mode 120000 index fc68d44..0000000 --- a/configs/releng-openrc/airootfs/etc/runlevels/default/NetworkManager +++ /dev/null @@ -1 +0,0 @@ -/etc/init.d/NetworkManager
\ No newline at end of file diff --git a/configs/releng-openrc/airootfs/etc/shadow b/configs/releng-openrc/airootfs/etc/shadow deleted file mode 100644 index 7edfd69..0000000 --- a/configs/releng-openrc/airootfs/etc/shadow +++ /dev/null @@ -1 +0,0 @@ -root::14871:::::: diff --git a/configs/releng-openrc/airootfs/etc/ssh/sshd_config b/configs/releng-openrc/airootfs/etc/ssh/sshd_config deleted file mode 100644 index 8ef1758..0000000 --- a/configs/releng-openrc/airootfs/etc/ssh/sshd_config +++ /dev/null @@ -1,116 +0,0 @@ -# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -#HostKey /etc/ssh/ssh_host_rsa_key -#HostKey /etc/ssh/ssh_host_ecdsa_key -#HostKey /etc/ssh/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -#LogLevel INFO - -# Authentication: - -#LoginGraceTime 2m -PermitRootLogin yes -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -#PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -#PasswordAuthentication yes -#PermitEmptyPasswords no - -# Change to no to disable s/key passwords -ChallengeResponseAuthentication no - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no - -# GSSAPI options -#GSSAPIAuthentication no -#GSSAPICleanupCredentials yes - -# Set this to 'yes' to enable PAM authentication, account processing, -# and session processing. If this is enabled, PAM authentication will -# be allowed through the ChallengeResponseAuthentication and -# PasswordAuthentication. Depending on your PAM configuration, -# PAM authentication via ChallengeResponseAuthentication may bypass -# the setting of "PermitRootLogin without-password". -# If you just want the PAM account and session checks to run without -# PAM authentication, then enable this but set PasswordAuthentication -# and ChallengeResponseAuthentication to 'no'. -UsePAM yes - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -#GatewayPorts no -#X11Forwarding no -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -PrintMotd no # pam does that -#PrintLastLog yes -#TCPKeepAlive yes -#PermitUserEnvironment no -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -#UseDNS no -#PidFile /run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# override default of no subsystems -Subsystem sftp /usr/lib/ssh/sftp-server - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/configs/releng-openrc/airootfs/root/.automated_script.sh b/configs/releng-openrc/airootfs/root/.automated_script.sh deleted file mode 100755 index 5c0c316..0000000 --- a/configs/releng-openrc/airootfs/root/.automated_script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -script_cmdline () -{ - local param - for param in $(< /proc/cmdline); do - case "${param}" in - script=*) echo "${param#*=}" ; return 0 ;; - esac - done -} - -automated_script () -{ - local script rt - script="$(script_cmdline)" - if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then - if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then - curl "${script}" --location --retry-connrefused -s -o /tmp/startup_script >/dev/null - rt=$? - else - cp "${script}" /tmp/startup_script - rt=$? - fi - if [[ ${rt} -eq 0 ]]; then - chmod +x /tmp/startup_script - /tmp/startup_script - fi - fi -} - -if [[ $(tty) == "/dev/tty1" ]]; then - automated_script -fi diff --git a/configs/releng-openrc/airootfs/root/.zlogin b/configs/releng-openrc/airootfs/root/.zlogin deleted file mode 100644 index 0fb119d..0000000 --- a/configs/releng-openrc/airootfs/root/.zlogin +++ /dev/null @@ -1,6 +0,0 @@ -# fix for screen readers -if grep -Fq 'accessibility=' /proc/cmdline &> /dev/null; then - setopt SINGLE_LINE_ZLE -fi - -~/.automated_script.sh diff --git a/configs/releng-openrc/airootfs/usr/local/bin/Installation_guide b/configs/releng-openrc/airootfs/usr/local/bin/Installation_guide deleted file mode 100755 index 876fbd2..0000000 --- a/configs/releng-openrc/airootfs/usr/local/bin/Installation_guide +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# -# SPDX-License-Identifier: GPL-3.0-or-later - -exec lynx 'https://wiki.parabola.nu/Installation_Guide' diff --git a/configs/releng-openrc/airootfs/usr/local/bin/choose-mirror b/configs/releng-openrc/airootfs/usr/local/bin/choose-mirror deleted file mode 100755 index e8f8254..0000000 --- a/configs/releng-openrc/airootfs/usr/local/bin/choose-mirror +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# -# SPDX-License-Identifier: GPL-3.0-or-later - -get_cmdline() { - local param - for param in $(< /proc/cmdline); do - case "${param}" in - $1=*) echo "${param##*=}"; - return 0 - ;; - esac - done -} - -mirror=$(get_cmdline mirror) -[[ $mirror = auto ]] && mirror=$(get_cmdline parabolaiso_http_srv) -[[ $mirror ]] || exit 0 - -mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig -cat >/etc/pacman.d/mirrorlist << EOF -# -# Parabola GNU/Linux-libre repository mirrorlist -# Generated by parabolaiso -# - -Server = ${mirror%%/}/\$repo/os/\$arch -EOF diff --git a/configs/releng-openrc/airootfs/usr/local/bin/livecd-sound b/configs/releng-openrc/airootfs/usr/local/bin/livecd-sound deleted file mode 100755 index 3ead720..0000000 --- a/configs/releng-openrc/airootfs/usr/local/bin/livecd-sound +++ /dev/null @@ -1,248 +0,0 @@ -#!/usr/bin/env bash -# -# SPDX-License-Identifier: GPL-3.0-or-later - -usage() { - cat <<- _EOF_ - live cd sound helper script. - Usage: livecdsound [OPTION] - OPTIONS - -u, --unmute unmute all sound cards - -p, --pick select a card for speetch output - -h, --help Show this usage message - -_EOF_ -} - -bugout () { - printf "/usr/local/bin/livecdsound: programming error" - stat_fail -} - -echo_card_indices() -{ - if [ -f /proc/asound/cards ] ; then - sed -n -e's/^[[:space:]]*\([0-7]\)[[:space:]].*/\1/p' /proc/asound/cards - fi -} - -# The following functions try to set many controls. -# No card has all the controls and so some of the attempts are bound to fail. -# Because of this, the functions can't return useful status values. - -# $1 <card id> -# $2 <control> -# $3 <level> -unmute_and_set_level(){ - { [ "$3" ] &&[ "$2" ] && [ "$1" ] ; } || bugout - printf "Setting: %s on card: %s to %s\n" "$2" "$1" "$3" - amixer -c "$1" set "$2" "$3" unmute - return 0 -} - -# $1 <card id> -# $2 <control> -mute_and_zero_level() -{ - { [ "$1" ] && [ "$2" ] ; } || bugout - printf "Muting control: %s on card: %s\n" "$2" "$1" - amixer -c "$1" set "$2" "0%" mute - return 0 -} - -# $1 <card ID> -# $2 <control> -# $3 "on" | "off" -switch_control() -{ - { [ "$3" ] && [ "$1" ] ; } || bugout - printf "Switching control: %s on card: %s to %s\n" "$2" "$1" "$3" - amixer -c "$1" set "$2" "$3" - return 0 -} - -# $1 <card ID> -sanify_levels_on_card() -{ - unmute_and_set_level "$1" "Front" "80%" - unmute_and_set_level "$1" "Master" "80%" - unmute_and_set_level "$1" "Master Mono" "80%" - unmute_and_set_level "$1" "Master Digital" "80%" # E.g., cs4237B - unmute_and_set_level "$1" "Playback" "80%" - unmute_and_set_level "$1" "Headphone" "100%" - unmute_and_set_level "$1" "PCM" "80%" - unmute_and_set_level "$1" "PCM,1" "80%" # E.g., ess1969 - unmute_and_set_level "$1" "DAC" "80%" # E.g., envy24, cs46xx - unmute_and_set_level "$1" "DAC,0" "80%" # E.g., envy24 - unmute_and_set_level "$1" "DAC,1" "80%" # E.g., envy24 - unmute_and_set_level "$1" "Synth" "80%" - unmute_and_set_level "$1" "CD" "80%" - unmute_and_set_level "$1" "PC Speaker" "100%" - - mute_and_zero_level "$1" "Mic" - mute_and_zero_level "$1" "IEC958" # Ubuntu #19648 - - # Intel P4P800-MX - switch_control "$1" "Master Playback Switch" on - switch_control "$1" "Master Surround" on - - # Trident/YMFPCI/emu10k1: - unmute_and_set_level "$1" "Wave" "80%" - unmute_and_set_level "$1" "Music" "80%" - unmute_and_set_level "$1" "AC97" "80%" - - # DRC: - unmute_and_set_level "$1" "Dynamic Range Compression" "80%" - - # Required for HDA Intel (hda-intel): - unmute_and_set_level "$1" "Front" "80%" - - # Required for SB Live 7.1/24-bit (ca0106): - unmute_and_set_level "$1" "Analog Front" "80%" - - # Required at least for Via 823x hardware on DFI K8M800-MLVF Motherboard - switch_control "$1" "IEC958 Capture Monitor" off - - # Required for hardware allowing toggles for AC97 through IEC958, - # valid values are 0, 1, 2, 3. Needs to be set to 0 for PCM1. - unmute_and_set_level "$1" "IEC958 Playback AC97-SPSA" "0" - - # Required for newer Via hardware - unmute_and_set_level "$1" "VIA DXS,0" "80%" - unmute_and_set_level "$1" "VIA DXS,1" "80%" - unmute_and_set_level "$1" "VIA DXS,2" "80%" - unmute_and_set_level "$1" "VIA DXS,3" "80%" - - # Required on some notebooks with ICH4: - switch_control "$1" "Headphone Jack Sense" off - switch_control "$1" "Line Jack Sense" off - - # Some machines need one or more of these to be on; - # others need one or more of these to be off: - - switch_control "$1" "Audigy Analog/Digital Output Jack" on - switch_control "$1" "SB Live Analog/Digital Output Jack" on - - # D1984 -- Thinkpad T61/X61 - switch_control "$1" "Speaker" on - switch_control "$1" "Headphone" on - - # HDA-Intel w/ "Digital" capture mixer (See Ubuntu #193823) - unmute_and_set_level "$1" "Digital" "80%" - - return 0 -} - -# $1 <card ID> | "all" -sanify_levels() -{ - local ttsdml_returnstatus=0 - local card - case "$1" in - all) - for card in $(echo_card_indices) ; do - sanify_levels_on_card "$card" || ttsdml_returnstatus=1 - done - ;; - *) - sanify_levels_on_card "$1" || ttsdml_returnstatus=1 - ;; - esac - return $ttsdml_returnstatus -} - -# List all cards that *should* be usable for PCM audio. In my experience, -# the console speaker (handled by the pcsp driver) isn't a suitable playback -# device, so we'll exclude it. -list_non_pcsp_cards() -{ - for card in $(echo_card_indices); do - local cardfile="/proc/asound/card${card}/id" - if [ -r "$cardfile" ] && [ -f "$cardfile" ] && \ - [ "$(cat "$cardfile")" != pcsp ]; then - echo "$card" - fi - done -} - -# Properly initialize the sound card so that we have audio at boot. -unmute_all_cards() -{ - sanify_levels all -} - -is_numeric() { - local str=$1 - [[ "$str" =~ ^[0-9]+$ ]] -} - -set_default_card() { - local card=$1 - sed -e "s/%card%/$card/g" < /usr/local/share/livecd-sound/asound.conf.in \ - > /etc/asound.conf -} - -play_on_card() { - local card=$1 file=$2 - aplay -q "-Dplughw:$card,0" "$file" -} - -# If there are multiple usable sound cards, prompt the user to choose one, -# using auditory feedback. -pick_a_card() -{ - set -f - usable_cards="$(list_non_pcsp_cards)" - num_usable_cards="$(wc -w <<< "$usable_cards")" - - if [ "$num_usable_cards" -eq 1 ]; then - printf "Only one sound card is detected\n" - exit 0 - fi - printf "multiple sound cards detected\n" - for card in $usable_cards; do - if ! is_numeric "$card"; then - continue - fi - play_on_card "$card" /usr/share/livecd-sounds/pick-a-card.wav& - done - wait - sleep 1 - for card in $usable_cards; do - if ! is_numeric "$card"; then - continue - fi - play_on_card "$card" /usr/share/livecd-sounds/beep.wav - if read -r -t 10; then - printf "Selecting %s sound card as default\n" "$card" - set_default_card "$card" - break - fi -done -} - -if [[ $# -eq 0 ]]; then - echo "error: No argument passed." - exit 1 -fi -while [[ "${1}" != "" ]]; do - case ${1} in - -h|--help) - usage - exit - ;; - -u|--unmute) - printf "Unmuting all cards" - unmute_all_cards - ;; - -p|--pick) - pick_a_card - ;; - *) - echo "error: Unsupported argument" - usage - exit 1 - ;; - esac - shift -done diff --git a/configs/releng-openrc/airootfs/usr/local/share/livecd-sound/asound.conf.in b/configs/releng-openrc/airootfs/usr/local/share/livecd-sound/asound.conf.in deleted file mode 100644 index 3f9c7aa..0000000 --- a/configs/releng-openrc/airootfs/usr/local/share/livecd-sound/asound.conf.in +++ /dev/null @@ -1,3 +0,0 @@ -Defaults node -defaults.ctl.card %card%; -defaults.pcm.card %card%; |