- kernel-module-nls-utf8
- kernel-module-cifs echo start on startup > /etc/ event .d/cifs<br>echo exec modprobe cifs >> /etc/ event .d/cifs <br><br> * This source code was highlighted with Source Code Highlighter .mkdir /home/user/MyDocs/mountpoints<br>mkdir /home/user/MyDocs/mountpoints/notebook-upload <br><br> * This source code was highlighted with Source Code Highlighter .#!/bin/sh
set -e
ICD_CONNECTION_NAME=$(gconftool-2 -g "/system/osso/connectivity/IAP/$ICD_CONNECTION_ID/name" )
if [ "$IFACE" = wlan0 ]; then
if [ "$ICD_CONNECTION_NAME" = "<your ssid>" ]; then
mount -t cifs //<server>/<folder> /home/user/MyDocs/mountpoints/notebook-upload/ -o user=<username>,pass=<password>,ip=<serverip>,codepage=cp1251,iocharset=utf8
fi
fi
* This source code was highlighted with Source Code Highlighter .#!/bin/sh
set -e
ICD_CONNECTION_NAME=$(gconftool-2 -g "/system/osso/connectivity/IAP/$ICD_CONNECTION_ID/name" )
if [ "$IFACE" = wlan0 ]; then
if [ "$ICD_CONNECTION_NAME" = "<your ssid>" ]; then
umount /home/user/MyDocs/mountpoints/notebook-upload/
fi
fi
* This source code was highlighted with Source Code Highlighter .chmod 755 /etc/network/ if -up.d/00_mount_notebook_upload
chmod 755 /etc/network/ if -down.d/00_umount_notebook_upload
* This source code was highlighted with Source Code Highlighter .Source: https://habr.com/ru/post/99052/
All Articles