Új hozzászólás Aktív témák

  • suste

    veterán

    válasz suste #52468 üzenetére

    ha már itt tartunk, akkor rendesen így lehetne ezt megoldani?
    -létrehozni:
    /etc/hotplug.d/iface/21-cifs-mount:

    -tartalom:
    #!/bin/sh
    # This script is executed as part of the hotplug event with
    # HOTPLUG_TYPE=iface, triggered by various scripts when an interface
    # is configured (ACTION=ifup) or deconfigured (ACTION=ifdown). The
    # interface is available as INTERFACE, the real device as DEVICE.

    [ "$DEVICE" == "lo" ] && exit 0

    . /etc/functions.sh
    case "$ACTION" in
    ifup)
    if [ "$DEVICE" == "br-lan" ]
    then /bin/mount -t cifs //192.168.1.1/mnt /cifs -o user=router,password=password09,nounix,noserverino
    fi
    ;;
    ifdown)
    if [ "$DEVICE" == "br-lan" ]
    then /bin/umount /cifs
    fi
    ;;
    esac

    Valahol találtam:).
    Persze a megfelelő mount paranccsal kiegészítve.....

Új hozzászólás Aktív témák