mirror of
				https://github.com/AdnanHodzic/auto-cpufreq.git
				synced 2025-10-31 19:24:34 +01:00 
			
		
		
		
	deploy unified (across distirbutions) systemd unit file (issue: #12)
This commit is contained in:
		
							parent
							
								
									2d12a05af2
								
							
						
					
					
						commit
						d75d8dc2b1
					
				| @ -76,9 +76,6 @@ def deploy(): | |||||||
|     print("\n* Deploy auto-cpufreq remove script") |     print("\n* Deploy auto-cpufreq remove script") | ||||||
|     os.system("cp scripts/auto-cpufreq-remove.sh /usr/bin/auto-cpufreq-remove") |     os.system("cp scripts/auto-cpufreq-remove.sh /usr/bin/auto-cpufreq-remove") | ||||||
| 
 | 
 | ||||||
|     print("\n* Deploy auto-cpufreq systemd unit file") |  | ||||||
|     os.system("cp scripts/auto-cpufreq.service /usr/lib/systemd/system/auto-cpufreq.service") |  | ||||||
| 
 |  | ||||||
|     # run auto-cpufreq daemon deploy script |     # run auto-cpufreq daemon deploy script | ||||||
|     s.call("/usr/bin/auto-cpufreq-install", shell=True) |     s.call("/usr/bin/auto-cpufreq-install", shell=True) | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -14,6 +14,9 @@ fi | |||||||
| # this is needed on SELinux enabled systems (see also ConditionPathExists in .service) | # this is needed on SELinux enabled systems (see also ConditionPathExists in .service) | ||||||
| touch /var/log/auto-cpufreq.log | touch /var/log/auto-cpufreq.log | ||||||
| 
 | 
 | ||||||
|  | echo -e "\n* Deploy auto-cpufreq systemd unit file" | ||||||
|  | cp scripts/auto-cpufreq.service /etc/systemd/system/auto-cpufreq.service | ||||||
|  | 
 | ||||||
| echo -e "\n* Reloading systemd manager configuration" | echo -e "\n* Reloading systemd manager configuration" | ||||||
| systemctl daemon-reload | systemctl daemon-reload | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -18,7 +18,7 @@ echo -e "\n* Disabling auto-cpufreq daemon (systemd) at boot" | |||||||
| systemctl disable auto-cpufreq | systemctl disable auto-cpufreq | ||||||
| 
 | 
 | ||||||
| echo -e "\n* Removing auto-cpufreq daemon (systemd) unit file" | echo -e "\n* Removing auto-cpufreq daemon (systemd) unit file" | ||||||
| rm /usr/lib/systemd/system/auto-cpufreq.service | rm /etc/systemd/system/auto-cpufreq.service | ||||||
| 
 | 
 | ||||||
| echo -e "\n* Reloading systemd manager configuration" | echo -e "\n* Reloading systemd manager configuration" | ||||||
| systemctl daemon-reload | systemctl daemon-reload | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user