mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
15 lines
291 B
Bash
15 lines
291 B
Bash
|
#!/bin/sh
|
||
|
#
|
||
|
# Recompile the /etc/file/magic.mgc database.
|
||
|
# This should be done after any additions or changes to the files
|
||
|
# in /etc/file/magic/.
|
||
|
|
||
|
if [ ! "$UID" = "0" ]; then
|
||
|
echo "Error: must be root to recompile the system magic.mgc"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd /etc/file
|
||
|
/usr/bin/file --compile
|
||
|
|