#!/bin/sh
### BEGIN INIT INFO
# Provides:            $remote_fs
# Required-Start:      $local_fs $network $portmap
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:       2 3 4 5
# Default-Stop:        0 1 6
# Short-Description:   Mounts remote filesystems
# Description:         Mounts only those filesystems labelled _netdev in
#                      /etc/fstab. umountfs should handle the unmounting
# X-Required:          true
### END INIT INFO

. /lib/lsb/init-functions

[ -z $container ] || exit 0

case "$1" in
  start)
    log_init_msg "Mounting remote file systems"
    mount -a -O _netdev >/dev/null && log_success_msg || log_failure_msg
    ;;
  stop)
    # No-op
    ;;
  *)
    echo "Usage: $0 [start|stop]"
    exit 1
    ;;
esac

exit 0
