tweaks and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-02-02 13:45:35 +03:00
parent d1d36b9c2b
commit 20d1290a69

View File

@ -2,6 +2,8 @@
#----------------------------------------------------------------------
#
# TODO:
# - keyd -- copy config from syncthing...
# - tor (user) + link cfg
# - link config files
# - copy config files
# - edit system config files
@ -82,8 +84,8 @@ FEATURES=(
syncthing
# these can depend on some services like syncthing...
user-link
user-copy
#user-link
#user-copy
scripts
platform-scripts
@ -289,7 +291,7 @@ function feature-dnf-config(){
if [ -z "$(grep 'f_lynx/post-install' /etc/dnf/dnf.conf)" ] ; then
echo Updating config
# a bit ugly...
cat << EOF | sudo tee -a /etc/dnf/dnf.conf > /dev/null
cat <<-EOF | sudo tee -a /etc/dnf/dnf.conf > /dev/null
# added by f_lynx/post-install script...
fastmirror=True
@ -309,17 +311,19 @@ function feature-dir(){
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function feature-user-link(){
# XXX
true
}
# link user files/dirs (syncthing, ...)...
##function feature-user-link(){
## # XXX
## true
##}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function feature-user-copy(){
# XXX
true
}
# copy user files/dirs (syncthing, ...)...
##function feature-user-copy(){
## # XXX
## true
##}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -361,6 +365,9 @@ function feature-flatpak(){
function feature-snap(){
@ sudo dnf install snapd
@ sudo ln -s /var/lib/snapd/snap /snap
# this is here to compensate for snap not being ready right away...
# ...did not dig into why...
@ sleep 5
@setupList sudo snap install - ${PKG_SNAP[@]}
}
@ -498,9 +505,11 @@ function feature-snapshots(){ (
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# XXX needs a bit more setup...
function feature-s1yoga-fix-touchpad-resume(){
function feature-s1yoga-touchpad(){
cat <<-EOF | sudo tee /usr/lib/systemd/system-sleep/fix-touchpad
# XXX detect hardware and abort setup on non-compatible machines...
cat <<EOF | sudo tee /usr/lib/systemd/system-sleep/fix-touchpad
#!/bin/sh
# fixes an issue where the touchpad stops working after suspend/hibernate...
@ -514,6 +523,19 @@ EOF
@ chmod +x /usr/lib/systemd/system-sleep/fix-touchpad
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# XXX are these the same thing???
# - suspend does not work...
# - hibernate works on the second try only...
function feature-s1yoga-syspend(){
# XXX did not figure this one out yet...
}
function feature-s1yoga-hibernate(){
# XXX did not figure this one out yet...
# XXX HACK (will this work?)
# if hibernate fails retry once
# if second try fails beep
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# XXX skip scripts starting in "-"