[hostname] add alpine support
This commit is contained in:
		
					parent
					
						
							
								c801fb4965
							
						
					
				
			
			
				commit
				
					
						f4db6e908e
					
				
			
		
					 3 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -35,7 +35,7 @@ has_hostnamectl=$(cat "$__object/explorer/has_hostnamectl")
 | 
				
			||||||
# If everything is ok -> exit
 | 
					# If everything is ok -> exit
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
    archlinux|debian|suse|ubuntu|devuan|coreos)
 | 
					    archlinux|debian|suse|ubuntu|devuan|coreos|alpine)
 | 
				
			||||||
        if [ "$name_config" = "$name_should" ] && [ "$name_running" = "$name_should" ]; then
 | 
					        if [ "$name_config" = "$name_should" ] && [ "$name_running" = "$name_should" ]; then
 | 
				
			||||||
            exit 0
 | 
					            exit 0
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
| 
						 | 
					@ -58,7 +58,7 @@ echo changed >> "$__messages_out"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use the good old way to set the hostname even on machines running systemd.
 | 
					# Use the good old way to set the hostname even on machines running systemd.
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
    archlinux|debian|ubuntu|devuan|centos|coreos)
 | 
					    archlinux|debian|ubuntu|devuan|centos|coreos|alpine)
 | 
				
			||||||
        printf "printf '%%s\\\\n' '$name_should' > /etc/hostname\\n"
 | 
					        printf "printf '%%s\\\\n' '$name_should' > /etc/hostname\\n"
 | 
				
			||||||
        echo "hostname -F /etc/hostname"
 | 
					        echo "hostname -F /etc/hostname"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,7 +41,7 @@ not_supported() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
    archlinux|debian|suse|ubuntu|devuan|coreos)
 | 
					    archlinux|debian|suse|ubuntu|devuan|coreos|alpine)
 | 
				
			||||||
        # handled in gencode-remote
 | 
					        # handled in gencode-remote
 | 
				
			||||||
        :
 | 
					        :
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,6 +5,7 @@ next:
 | 
				
			||||||
	* Type __package: Add __package_apk support (Nico Schottelius)
 | 
						* Type __package: Add __package_apk support (Nico Schottelius)
 | 
				
			||||||
	* Type __start_on_boot: Add alpine support (Nico Schottelius)
 | 
						* Type __start_on_boot: Add alpine support (Nico Schottelius)
 | 
				
			||||||
	* Type __timezone: Add alpine support (Nico Schottelius)
 | 
						* Type __timezone: Add alpine support (Nico Schottelius)
 | 
				
			||||||
 | 
						* Type __hostname: Add alpine support (Nico Schottelius)
 | 
				
			||||||
	* Type __start_on_boot: gentoo: check all runlevels in explorer (Nico Schottelius)
 | 
						* Type __start_on_boot: gentoo: check all runlevels in explorer (Nico Schottelius)
 | 
				
			||||||
	* New type: __package_apk (Nico Schottelius)
 | 
						* New type: __package_apk (Nico Schottelius)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue