mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 14:38:36 +09:00 
			
		
		
		
	Enable and disable pigpiod daemon.
This commit is contained in:
		
							
								
								
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,9 @@
 | 
			
		||||
raspi-config (20170811) stretch; urgency=medium
 | 
			
		||||
 | 
			
		||||
  * Enable and disable pigpiod daemon with remote access
 | 
			
		||||
 | 
			
		||||
 -- Simon Long <simon@raspberrypi.org>  Fri, 11 Aug 2017 14:40:50 +0100
 | 
			
		||||
 | 
			
		||||
raspi-config (20170803) stretch; urgency=medium
 | 
			
		||||
 | 
			
		||||
  * Allow splash screen with fake KMS.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								raspi-config
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								raspi-config
									
									
									
									
									
								
							@@ -990,15 +990,19 @@ do_rgpio() {
 | 
			
		||||
ExecStart=
 | 
			
		||||
ExecStart=/usr/bin/pigpiod
 | 
			
		||||
EOF
 | 
			
		||||
    systemctl daemon-reload
 | 
			
		||||
    systemctl restart pigpiod
 | 
			
		||||
    systemctl enable pigpiod
 | 
			
		||||
    STATUS=enabled
 | 
			
		||||
  elif [ $RET -eq 1 ]; then
 | 
			
		||||
    rm -f /etc/systemd/system/pigpiod.service.d/public.conf
 | 
			
		||||
    systemctl daemon-reload
 | 
			
		||||
    systemctl stop pigpiod
 | 
			
		||||
    systemctl disable pigpiod
 | 
			
		||||
    STATUS=disabled
 | 
			
		||||
  else
 | 
			
		||||
    return $RET
 | 
			
		||||
  fi
 | 
			
		||||
  systemctl daemon-reload
 | 
			
		||||
  systemctl restart pigpiod
 | 
			
		||||
  if [ "$INTERACTIVE" = True ]; then
 | 
			
		||||
    whiptail --msgbox "Remote access to the GPIO server is $STATUS" 20 60 1
 | 
			
		||||
  fi
 | 
			
		||||
@@ -1449,7 +1453,7 @@ do_interface_menu() {
 | 
			
		||||
      "P5 I2C" "Enable/Disable automatic loading of I2C kernel module" \
 | 
			
		||||
      "P6 Serial" "Enable/Disable shell and kernel messages on the serial connection" \
 | 
			
		||||
      "P7 1-Wire" "Enable/Disable one-wire interface" \
 | 
			
		||||
      "P8 Remote GPIO" "Enable/Disable remote access to GPIO pins" \
 | 
			
		||||
      "P8 GPIO Server" "Enable/Disable remote access to GPIO pins" \
 | 
			
		||||
      3>&1 1>&2 2>&3)
 | 
			
		||||
    RET=$?
 | 
			
		||||
    if [ $RET -eq 1 ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user