first commit
This commit is contained in:
6
external/cache/sources/raspi-config/debian/.gitignore
vendored
Normal file
6
external/cache/sources/raspi-config/debian/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
debhelper-build-stamp
|
||||
files
|
||||
*.debhelper.log
|
||||
*.debhelper
|
||||
*.substvars
|
||||
raspi-config/
|
||||
1012
external/cache/sources/raspi-config/debian/changelog
vendored
Normal file
1012
external/cache/sources/raspi-config/debian/changelog
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
external/cache/sources/raspi-config/debian/compat
vendored
Normal file
1
external/cache/sources/raspi-config/debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
10
|
||||
15
external/cache/sources/raspi-config/debian/control
vendored
Normal file
15
external/cache/sources/raspi-config/debian/control
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
Source: raspi-config
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Serge Schneider <serge@raspberrypi.com>
|
||||
Build-Depends: debhelper (>= 8.0.0)
|
||||
Standards-Version: 4.3.0
|
||||
Vcs-Git: git://git@github.com:RPi-Distro/raspi-config.git
|
||||
Vcs-Browser: https://github.com/RPi-Distro/raspi-config
|
||||
|
||||
Package: raspi-config
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, whiptail, parted, lua5.1, alsa-utils, psmisc, initramfs-tools
|
||||
Recommends: triggerhappy, iw, crda
|
||||
Description: Raspberry Pi configuration tool
|
||||
A simple configuration tool for common Raspberry Pi administrative tasks
|
||||
25
external/cache/sources/raspi-config/debian/copyright
vendored
Normal file
25
external/cache/sources/raspi-config/debian/copyright
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Source: https://github.com/RPi-Distro/raspi-config
|
||||
|
||||
Files: *
|
||||
Copyright: 2012 Alex Bradbury <asb@asbradbury.org>
|
||||
License: MIT
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to
|
||||
deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
57
external/cache/sources/raspi-config/debian/raspi-config.init
vendored
Normal file
57
external/cache/sources/raspi-config/debian/raspi-config.init
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: raspi-config
|
||||
# Required-Start: udev mountkernfs $remote_fs
|
||||
# Required-Stop:
|
||||
# Default-Start: S 2 3 4 5
|
||||
# Default-Stop:
|
||||
# Short-Description: Switch to ondemand cpu governor (unless shift key is pressed)
|
||||
# Description:
|
||||
### END INIT INFO
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
if [ -f /etc/default/cpu_governor ]; then
|
||||
. /etc/default/cpu_governor
|
||||
fi
|
||||
|
||||
CPU_DEFAULT_GOVERNOR="${CPU_DEFAULT_GOVERNOR:-ondemand}"
|
||||
CPU_ONDEMAND_UP_THRESHOLD="${CPU_ONDEMAND_UP_THRESHOLD:-50}"
|
||||
CPU_ONDEMAND_SAMPLING_RATE="${CPU_ONDEMAND_SAMPLING_RATE:-100000}"
|
||||
CPU_ONDEMAND_DOWN_SAMPLING_FACTOR="${CPU_ONDEMAND_DOWN_SAMPLING_FACTOR:-50}"
|
||||
CPU_ONDEMAND_INCLUDE_IO_CALC="${CPU_ONDEMAND_INCLUDE_IO_CALC:-0}"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Checking if shift key is held down"
|
||||
if [ -x /usr/sbin/thd ] && timeout 1 thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT"; then
|
||||
printf " Yes. Not enabling $CPU_DEFAULT_GOVERNOR scaling governor"
|
||||
log_end_msg 0
|
||||
else
|
||||
printf " No. Switching to $CPU_DEFAULT_GOVERNOR scaling governor"
|
||||
SYS_CPUFREQ_GOVERNOR=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
if [ -e $SYS_CPUFREQ_GOVERNOR ]; then
|
||||
for cpu_core in /sys/devices/system/cpu/cpu?/cpufreq/scaling_governor ; do
|
||||
echo "$CPU_DEFAULT_GOVERNOR" > $cpu_core
|
||||
done
|
||||
if [ "$CPU_DEFAULT_GOVERNOR" = "ondemand" ]; then
|
||||
echo "$CPU_ONDEMAND_UP_THRESHOLD" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||
echo "$CPU_ONDEMAND_SAMPLING_RATE" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
||||
echo "$CPU_ONDEMAND_DOWN_SAMPLING_FACTOR" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||
echo "$CPU_ONDEMAND_INCLUDE_IO_CALC" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
||||
fi
|
||||
fi
|
||||
log_end_msg 0
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
restart)
|
||||
;;
|
||||
force-reload)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 start" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
3
external/cache/sources/raspi-config/debian/raspi-config.install
vendored
Normal file
3
external/cache/sources/raspi-config/debian/raspi-config.install
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
raspi-config /usr/bin
|
||||
usr/
|
||||
etc/
|
||||
33
external/cache/sources/raspi-config/debian/raspi-config.postinst
vendored
Normal file
33
external/cache/sources/raspi-config/debian/raspi-config.postinst
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -e /etc/init.d/switch_cpu_governor ]; then
|
||||
update-rc.d switch_cpu_governor remove >/dev/null
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions "${2}" lt-nl "20170619"; then
|
||||
update-rc.d -f raspi-config remove
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions "${2}" lt-nl "20220804"; then
|
||||
echo "Moving to crda for regulatory domain management..."
|
||||
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then
|
||||
REGDOMAIN="$(sed -n 's/^country=\(.*\)$/\1/p' /etc/wpa_supplicant/wpa_supplicant.conf)"
|
||||
if [ -n "$REGDOMAIN" ]; then
|
||||
echo "Setting to $REGDOMAIN..."
|
||||
raspi-config nonint do_wifi_country "$REGDOMAIN"
|
||||
else
|
||||
echo "Regulatory domain was unset"
|
||||
fi
|
||||
else
|
||||
echo "wpa_cupplicant.conf not found"
|
||||
fi
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions "${2}" lt-nl "20220907+1"; then
|
||||
IMG_VER="$(grep -s -m1 -o '[[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}' /etc/rpi-issue)"
|
||||
if [ "$IMG_VER" = "2022-09-06" ] && [ -f /2 ]; then
|
||||
rm -f /2
|
||||
fi
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
20
external/cache/sources/raspi-config/debian/raspi-config.postrm
vendored
Normal file
20
external/cache/sources/raspi-config/debian/raspi-config.postrm
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
purge)
|
||||
if [ -d /etc/X11/xorg.conf.d/ ]; then
|
||||
rmdir --ignore-fail-on-non-empty /etc/X11/xorg.conf.d/
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
36
external/cache/sources/raspi-config/debian/raspi-config.prerm
vendored
Normal file
36
external/cache/sources/raspi-config/debian/raspi-config.prerm
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
#! /bin/sh
|
||||
# prerm script for raspi-config
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <prerm> `remove'
|
||||
# * <prerm> `purge'
|
||||
# * <old-prerm> `upgrade' <new-version>
|
||||
# * <new-prerm> `failed-upgrade' <old-version>
|
||||
# * <new-prerm> `abort-install'
|
||||
# * <new-prerm> `abort-install' <old-version>
|
||||
# * <new-prerm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-prerm> `disappear' <overwriter> <new-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
purge|remove|upgrade)
|
||||
;;
|
||||
|
||||
failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
16
external/cache/sources/raspi-config/debian/rules
vendored
Executable file
16
external/cache/sources/raspi-config/debian/rules
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
override_dh_installinit:
|
||||
dh_installinit --no-start
|
||||
|
||||
%:
|
||||
dh $@
|
||||
1
external/cache/sources/raspi-config/debian/source/format
vendored
Normal file
1
external/cache/sources/raspi-config/debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
Reference in New Issue
Block a user