mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	 75f01692b4
			
		
	
	
		75f01692b4
		
	
	
	
	
		
			
			Let's put the power_state global node into the /sys/kernel directory, because that directory represents all global nodes and variables being related to the Kernel. It's also a mutable node, that is more acceptable being in the mentioned directory due to the fact that all other files in the /sys/firmware directory are just firmware blobs and are not mutable at all.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			304 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			304 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| reboot - Reboot the machine
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**sh
 | |
| $ reboot
 | |
| ```
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| `reboot` instructs the kernel to reboot the machine immediately.
 | |
| 
 | |
| ## Notes
 | |
| 
 | |
| The `reboot` utility opens the `/sys/kernel/power_state` node and writes the magic value "1"
 | |
| to instruct the kernel to reboot the machine.
 |