mirror of https://github.com/cutefishos/appmotor
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			683 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			683 B
		
	
	
	
		
			Bash
		
	
#!/bin/sh
 | 
						|
if [ "$1" = "configure" ]; then
 | 
						|
 | 
						|
    # At package configuration time we need to inform aegis about the configuration file
 | 
						|
    aegisfs --install /etc/aegisfs.d/applauncherd-fs.conf
 | 
						|
 | 
						|
elif [ "$1" = "triggered" ]; then
 | 
						|
 | 
						|
    # Installation of some other package may have caused applauncherd credentials to go stale,
 | 
						|
    # ask applauncherd to re-exec to refresh the credentials.
 | 
						|
    if [ -s /var/run/applauncherd.lock ] && [ -d /proc/`cat /var/run/applauncherd.lock` ]; 
 | 
						|
    then
 | 
						|
	    if ! kill -HUP `cat /var/run/applauncherd.lock`
 | 
						|
        then
 | 
						|
            echo "Warning! Sending SIGHUP to pid $(cat /var/run/applauncherd.lock) failed."
 | 
						|
            exit 0
 | 
						|
        fi 
 | 
						|
    fi
 | 
						|
fi
 |