mirror of
				https://github.com/flynx/post-install.git
				synced 2025-10-31 11:40:06 +00:00 
			
		
		
		
	Merge branch 'master' of github.com:flynx/post-install
This commit is contained in:
		
						commit
						ea530acdff
					
				
							
								
								
									
										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 | ||||||
| @ -300,7 +302,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 | ||||||
| @ -320,17 +322,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 | ||||||
|  | ##} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
| @ -372,6 +376,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[@]} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -509,9 +516,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...  | ||||||
| @ -525,6 +534,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