Changeset 24447


Ignore:
Timestamp:
Oct 19, 2013, 9:55:38 PM (7 years ago)
Author:
tobayer
Message:

[TPK samba] update control files

Location:
ipk/source.sh4/network_samba/CONTROL
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_samba/CONTROL/control

    r24435 r24447  
    11Package: enigma2-plugin-network-samba
    22Version: 3.028
     3Architecture: sh4
     4Section: network
    35Description: Samba
    4 Section: network
    5 Architecture: sh4
    66Showname: Samba (Server)
  • ipk/source.sh4/network_samba/CONTROL/postinst

    r24435 r24447  
    22INSTDIR="$1"
    33
    4 if [ "/var" != "$INSTDIR" ]; then
    5         rm -rf /var/bin/smbd
    6         rm -rf /var/bin/nmbd
    7         ln -s "$INSTDIR/bin/smbd" /var/bin/smbd
    8         ln -s "$INSTDIR/bin/nmbd" /var/bin/nmbd
     4if [ "$INSTDIR" != "/var" ]; then
     5        ln -snf "$INSTDIR/bin/smbd" /var/bin/smbd
     6        ln -snf "$INSTDIR/bin/nmbd" /var/bin/nmbd
    97fi
    108
     
    1210
    1311if [ -f /mnt/config/start-config ]; then
    14         echo "activate samba..."
    1512        sed -i s#"sambaserver=n"#"sambaserver=y"#g /mnt/config/start-config
    1613fi
    1714
    18 echo "start samba..."
    1915/var/bin/smbd -D; sleep 1; /var/bin/nmbd -D
    2016
  • ipk/source.sh4/network_samba/CONTROL/postrm

    r24435 r24447  
    11#!/bin/sh
     2INSTDIR="$1"
     3
     4if [ "$INSTDIR" != "/var" ]; then
     5        rm -rf /var/bin/smbd > /dev/null 2>&1
     6        rm -rf /var/bin/nmbd > /dev/null 2>&1
     7fi
    28
    39if [ -f /mnt/config/start-config ]; then
    4         echo "deactivate samba..."
    510        sed -i s#"sambaserver=y"#"sambaserver=n"#g /mnt/config/start-config
    611fi
  • ipk/source.sh4/network_samba/CONTROL/prerm

    r24435 r24447  
    11#!/bin/sh
    22
    3 echo "kill samba if running"
    43killall -9 smbd > /dev/null 2>&1
    54killall -9 nmbd > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.