====== OpenVZ/Proxmox vzquota in squeeze container ====== #!/bin/sh ### BEGIN INIT INFO # Provides: vzquota # Required-Start: # Required-Stop: # Should-Start: $local_fs $syslog # Should-Stop: $local_fs $syslog # Default-Start: 0 1 2 3 4 5 6 # Default-Stop: # Short-Description: Fixed(?) vzquota init script ### END INIT INFO start() { [ -e "/dev/vzfs" ] || mknod /dev/vzfs b 0 115 rm -f /etc/mtab >/dev/null 2>&1 echo "/dev/vzfs / reiserfs rw,usrquota,grpquota 0 0" > /etc/mtab mnt=`grep -v " / " /proc/mounts` if [ $? = 0 ]; then echo "$mnt" >> /etc/mtab fi } case "$1" in start) start ;; *) exit esac