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:
Justin Cormack 2016-12-19 17:06:41 +00:00
parent b5945587a7
commit f75039f9bc
2 changed files with 0 additions and 13 deletions

View File

@ -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