File:  [GPL Stacker compression] / dmsdos / magic.sh
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:37:54 2018 UTC (22 months ago) by root
Branches: MAIN, DMSDOS
CVS tags: dmsdos092322, dmsdos092232, dmsdos0922, HEAD
DMSDOS 0.9.2.2

#!/bin/sh

if [ ! -f /etc/magic ];
then
	echo "/etc/magic not found, skipped."
	exit 0
fi

grep "CVF formats" /etc/magic > /dev/null
if [ "$?" != "1" ];
then
	echo "/etc/magic contains already CVF magic numbers."
	exit 0
fi

echo "If you want to make the command file(1) recognize CVFs the magic numbers"
echo "can be added to the database /etc/magic automatically now."
echo -n "Do you want me to do this ? (Y/N) "
read ANS junk
if [ "$ANS" = y -o "$ANS" = Y ];
then
	cat patches/magic >> /etc/magic
fi

exit 0

unix.superglobalmegacorp.com