понедельник, 4 декабря 2017 г.

SSHFS mount при старте системы

добавляем в /etc/rc.local


#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/nurlan/sshfs.sh | exit 1
exit 0


Сам скрипт
#!bin/bash
echo 'password' | sshfs nurlan@172.27.1.16:/home/nurlan /mnt/SIP -o password_stdin

Комментариев нет:

Отправить комментарий