You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
445 B
28 lines
445 B
8 years ago
|
#!/bin/sh
|
||
|
|
||
7 years ago
|
. /etc/init.d/globals
|
||
|
|
||
8 years ago
|
case $1 in
|
||
|
start)
|
||
|
if [ -e /var/etc/.djmount ]; then
|
||
|
modprobe fuse
|
||
|
test -d /media/upnp || mkdir /media/upnp
|
||
|
djmount -o iocharset=utf-8 /media/upnp 2>&1 > /dev/null
|
||
|
fi
|
||
7 years ago
|
;;
|
||
8 years ago
|
stop)
|
||
7 years ago
|
if [ -e /var/etc/.djmount ]; then
|
||
|
fusermount -u /media/upnp
|
||
|
fi
|
||
7 years ago
|
;;
|
||
8 years ago
|
restart)
|
||
|
if [ -e /var/etc/.djmount ]; then
|
||
|
$0 stop
|
||
|
$0 start
|
||
|
fi
|
||
7 years ago
|
;;
|
||
|
*)
|
||
|
echo "[${BASENAME}] Usage: $0 {start|restart|stop}"
|
||
|
;;
|
||
8 years ago
|
esac
|