From 20d1290a69e42a89e98603624a886e91502e652f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 2 Feb 2023 13:45:35 +0300 Subject: [PATCH] tweaks and notes... Signed-off-by: Alex A. Naanou --- post-install | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/post-install b/post-install index 68a731c..b41ed74 100755 --- a/post-install +++ b/post-install @@ -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 <