mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
41fd8b888d
/sys/modules/msdosfs. Bump PORTREVISION.
34 lines
813 B
Bash
34 lines
813 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -x @@PREFIX@@/modules/cd9660.ko ]; then
|
|
echo -n ' Big5-cd9660'
|
|
kldload /usr/local/modules/cd9660.ko
|
|
fi
|
|
if [ -x @@PREFIX@@/modules/msdos.ko ]; then
|
|
echo -n ' Big5-msdos'
|
|
kldload /usr/local/modules/msdos.ko
|
|
fi
|
|
# msdosfs.ko instead of msdos.ko after FreeBSD 5.0-CURRENT
|
|
if [ -x @@PREFIX@@/modules/msdosfs.ko ]; then
|
|
echo -n ' Big5-msdosfs'
|
|
kldload /usr/local/modules/msdosfs.ko
|
|
fi
|
|
if [ -x @@PREFIX@@/modules/ntfs.ko ]; then
|
|
echo -n ' Big5-ntfs'
|
|
kldload /usr/local/modules/ntfs.ko
|
|
fi
|
|
;;
|
|
stop)
|
|
kldunload -v -n cd9660 && echo -n ' Big5-cd9660'
|
|
kldunload -v -n msdos && echo -n ' Big5-msdos'
|
|
kldunload -v -n msdosfs && echo -n ' Big5-msdosfs'
|
|
kldunload -v -n ntfs && echo -n ' Big5-ntfs'
|
|
;;
|
|
*)
|
|
echo "Usage: big5fs.sh {start|stop}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|