mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 03:40:16 +00:00 
			
		
		
		
	Clean up scripts
- the binfmt script is not needed - rename the script to instal in Docker for Mac Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
		| @@ -1,13 +0,0 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| for f in /proc/sys/fs/binfmt_misc/qemu* | ||||
| do | ||||
| 	NAME=$(basename $f) | ||||
| 	MAGIC=$(cat $f | grep '^magic' | sed 's/^magic //' | sed 's/\(..\)/\\x\1/g') | ||||
| 	OFFSET=$(cat $f | grep '^offset' | sed 's/^offset //') | ||||
| 	MASK=$(cat $f | grep '^mask' | sed 's/^mask //' | sed 's/\(..\)/\\x\1/g') | ||||
| 	EXEC="/usr/bin/${NAME}-static" | ||||
| 	FLAGS=$(cat $f | grep '^flags:' | sed 's/^flags: //') | ||||
|  | ||||
| 	printf "\techo \":${NAME}:M:${OFFSET}:${MAGIC}:${MASK}:${EXEC}:${FLAGS}\" > /proc/sys/fs/binfmt_misc/register\n" | ||||
| done | ||||
		Reference in New Issue
	
	Block a user