Renames to udev.rules files to avoid potential install.d collisions in DIB. Change-Id: I2d70aa8b6e3e5fe957cb81c57f378d9623809c03
		
			
				
	
	
		
			15 lines
		
	
	
		
			652 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			652 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
set -x
 | 
						|
 | 
						|
SCRIPTDIR=$(dirname $0)
 | 
						|
 | 
						|
install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.sh /usr/local/sbin/dhcp-all-interfaces.sh
 | 
						|
 | 
						|
DIB_INIT_SYSTEM=$(dib-init-system)
 | 
						|
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
 | 
						|
    install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.conf /etc/init/dhcp-all-interfaces.conf
 | 
						|
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
 | 
						|
    install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-interface@.service /usr/lib/systemd/system/dhcp-interface@.service
 | 
						|
    install -D -g root -o root -m 0644 ${SCRIPTDIR}/dhcp-all-interfaces-udev.rules /etc/udev/rules.d/99-dhcp-all-interfaces.rules
 | 
						|
fi
 |