5 kx #!/bin/sh
5 kx #
5 kx # Recompile the /etc/file/magic.mgc database.
5 kx # This should be done after any additions or changes to the files
5 kx # in /etc/file/magic/.
5 kx
5 kx if [ ! "$UID" = "0" ]; then
5 kx echo "Error: must be root to recompile the system magic.mgc"
5 kx exit 1
5 kx fi
5 kx
5 kx cd /etc/file
5 kx /usr/bin/file --compile
5 kx