updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / smbnetfs-svn / smbnetfs.install
blob0516d8318141478371bb3592b59e877dc3bef573
1 pre_install() {
2   /bin/true
5 post_install() {
6   echo "-- To use rc-script you should:"
7   echo "--   * set user_allow_other option in /etc/fuse.conf"
8   echo "--   * check permissions for nobody to /mnt/smbnet and /etc/smbnetfs"
10   chown -R nobody.nobody /etc/smbnetfs/.smb && \
11   mkdir -p /mnt/smbnet && \
12   chown nobody.nobody /mnt/smbnet && \
13   chmod 0777 /mnt/smbnet
16 pre_upgrade() {
17   /etc/rc.d/smbnetfs stop
18   /bin/true
21 post_upgrade() {
22   echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
23   echo "--   * set user_allow_other option in /etc/fuse.conf"
24   echo "--   * check permissions for nobody to /mnt/smbnet and /etc/smbnetfs"
26   chown -R nobody.nobody /etc/smbnetfs/.smb && \
27   mkdir -p /mnt/smbnet && \
28   chown nobody.nobody /mnt/smbnet && \
29   chmod 0777 /mnt/smbnet
32 pre_remove() {
33   /bin/true
36 post_remove() {
37   /bin/true
40 op=$1
41 shift
42 $op $*