mirror of
https://github.com/flynx/post-install.git
synced 2025-10-29 10:40:09 +00:00
tweaks and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d1d36b9c2b
commit
20d1290a69
48
post-install
48
post-install
@ -2,6 +2,8 @@
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# TODO:
|
# TODO:
|
||||||
|
# - keyd -- copy config from syncthing...
|
||||||
|
# - tor (user) + link cfg
|
||||||
# - link config files
|
# - link config files
|
||||||
# - copy config files
|
# - copy config files
|
||||||
# - edit system config files
|
# - edit system config files
|
||||||
@ -82,8 +84,8 @@ FEATURES=(
|
|||||||
syncthing
|
syncthing
|
||||||
|
|
||||||
# these can depend on some services like syncthing...
|
# these can depend on some services like syncthing...
|
||||||
user-link
|
#user-link
|
||||||
user-copy
|
#user-copy
|
||||||
|
|
||||||
scripts
|
scripts
|
||||||
platform-scripts
|
platform-scripts
|
||||||
@ -289,7 +291,7 @@ function feature-dnf-config(){
|
|||||||
if [ -z "$(grep 'f_lynx/post-install' /etc/dnf/dnf.conf)" ] ; then
|
if [ -z "$(grep 'f_lynx/post-install' /etc/dnf/dnf.conf)" ] ; then
|
||||||
echo Updating config
|
echo Updating config
|
||||||
# a bit ugly...
|
# 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...
|
# added by f_lynx/post-install script...
|
||||||
fastmirror=True
|
fastmirror=True
|
||||||
@ -309,17 +311,19 @@ function feature-dir(){
|
|||||||
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
function feature-user-link(){
|
# link user files/dirs (syncthing, ...)...
|
||||||
# XXX
|
##function feature-user-link(){
|
||||||
true
|
## # XXX
|
||||||
}
|
## true
|
||||||
|
##}
|
||||||
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
function feature-user-copy(){
|
# copy user files/dirs (syncthing, ...)...
|
||||||
# XXX
|
##function feature-user-copy(){
|
||||||
true
|
## # XXX
|
||||||
}
|
## true
|
||||||
|
##}
|
||||||
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -361,6 +365,9 @@ function feature-flatpak(){
|
|||||||
function feature-snap(){
|
function feature-snap(){
|
||||||
@ sudo dnf install snapd
|
@ sudo dnf install snapd
|
||||||
@ sudo ln -s /var/lib/snapd/snap /snap
|
@ 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[@]}
|
@setupList sudo snap install - ${PKG_SNAP[@]}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -498,9 +505,11 @@ function feature-snapshots(){ (
|
|||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# XXX needs a bit more setup...
|
# 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
|
#!/bin/sh
|
||||||
|
|
||||||
# fixes an issue where the touchpad stops working after suspend/hibernate...
|
# 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
|
@ 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 "-"
|
# XXX skip scripts starting in "-"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user