#!/bin/ash
#210331 sfs
case "$1" in
    start)
	param() { egrep -qo " $1( |\$)" /proc/cmdline; }
	param noauto && exit 0

XXX(){
	[ -f /usr/lib/gvfs/gvfsd ] && exit 0

	if [ "`which pup-volume-monitor 2>/dev/null `" ];then
	    if [ "`which systemctl 2>/dev/null `" ];then
		[ -f /etc/systemd/system/multi-user.target.wants/pup-volume-monitor.service ] && exit 0
	    else
		[ "`stat -c %a /etc/rc.d/pup-volume-monitor`" = "755" ]  && exit 0
	    fi
	fi
}

#	mount-all -f &
	mount-all  &
        ;;
    poll)
        return 0 
        ;;
    stop)
        return 0 
        ;;
    *)
        echo "Minirc: $@ - unknown action" ;;
esac
