script to auto mount remote sshfss over network


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting script to auto mount remote sshfss over network
# 1  
Old 03-31-2012
script to auto mount remote sshfss over network

I have the folorwing three shel accounts on remote servers which i would like to auto mount at boot, bu have the auto mount be preceded by a check for an active Ethernet or 802.11 connection prito running the sshfs command.
  1. porter@tty.freeshelll.org
  2. cent1750@tty.freeshell.org
  3. redhead277@proshell.hypeshell.com
The question i have pertains to the auto detection of active network connections. Is there a specail call in #bin/sh scripting to auto detect an active network connection?
I am running Centos 6.2
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

scp auto logon to remote using remote authorized_keys

Hi~ i have an authorized key which it made remote host(B). i want log on without password from local(A) to the remote host(B) using authorized key of remote host. what shell i do? anybody help me. (1 Reply)
Discussion started by: tomato00
1 Replies

2. Shell Programming and Scripting

Mount fails (because remote machine is off) bash script stops

Hi, I'm trying to automate a couple of mounts. (I would do this in fstab, but the auto feature causes the virtual machine I'm running in to freeze when it boots up) If the machine I'm trying to connect to is OFF, I get the host unreachable error and then the bash script stops. The problem is... (3 Replies)
Discussion started by: jdilts
3 Replies

3. SuSE

auto mount

Hello, We got some SUSIE servers in and we are trying to get auto mount to work. We normally mount our home directories on RHEL and Solaris to /export/home. The home directories on the Susie servers mount home directory to /home. When uses login their home directories mount. When my coworker does... (2 Replies)
Discussion started by: bitlord
2 Replies

4. Shell Programming and Scripting

Auto mount/rsync/detach script

Hi All, I have got a box here running FreeNAS and have started to hack at someone elses script to make it do what I want. In particular his script was; 1) encrypting the USB attached device - which I dont need. 2) repeated beeping when finished (one long beep would be fine) 3) I dont... (0 Replies)
Discussion started by: bigal.nz
0 Replies

5. UNIX for Dummies Questions & Answers

Enable and disable the auto mount

How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies

6. Solaris

NFS VS Auto Mount problem

Dear All, Struck with a peculiar problem a) /opt/a is auto mounted to /home/a for User:a When the User logs in to the server his home directory is getting mounted from the autofs i.e /home/a (/opt/a), Instead is has to mount the User home dir from NIS which is /home/a (from NIS). ... (2 Replies)
Discussion started by: saiprashant
2 Replies

7. Ubuntu

Problem to auto mount on NFS server

I am new in Ubuntu and i use Ubuntu 7.10, and have problem to mount automatic when i reboot computer, Here is my /etc/fstab 192.168.0.91:/home/DATA/it /home/USER/usertest/Documents/Z nfs defaults 0 0 I try many option in that line, but the result is same, I cannot automatic mounting the... (5 Replies)
Discussion started by: blesets
5 Replies

8. UNIX for Advanced & Expert Users

auto mount lofs

Hi All, I want to mount one directory to other. i.e /export/home/dju to /dju It's like a link ( link -s ). but I don't want to use this( link method ) . I try to use : mount -F lofs /export/home/dju /dju the question is, how do I use this mount method with automount ,... (1 Reply)
Discussion started by: mdjuarsa
1 Replies

9. Shell Programming and Scripting

Auto mount

Hi, I have written this Auto mount using script. xterm -e mount/filesrv xterm -e /root/parameters/param.sh& xterm -e /root/parameters/prnscript/makePRN.sh& xterm -e /root/parameters.Releasechecker.sh& After Executing this script. I am getting 6 screens. It supposed to get only 3 screens. (0 Replies)
Discussion started by: kalyani
0 Replies

10. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies
Login or Register to Ask a Question
SYSTEMD-EFI-BOOT-GENERATOR(8)				    systemd-efi-boot-generator				     SYSTEMD-EFI-BOOT-GENERATOR(8)

NAME
systemd-efi-boot-generator - Generator for automatically mounting the EFI System Partition used by the current boot to /boot SYNOPSIS
/usr/lib/systemd/system-generators/systemd-efi-boot-generator DESCRIPTION
systemd-efi-boot-generator is a generator that automatically creates mount and automount units for the EFI System Partition (ESP), mounting it to /boot. Note that this generator will execute no operation on non-EFI systems, on systems where the boot loader does not communicate the used ESP to the OS, on systems where /boot is an explicitly configured mount (for example, listed in fstab(5)) or where the /boot mount point is non-empty. Since this generator creates an automount unit, the mount will only be activated on-demand, when accessed. systemd-efi-boot-generator implements the generator specification[1]. SEE ALSO
systemd(1), systemd.mount(5), systemd.automount(5), systemd-gpt-auto-generator(8), gummiboot(8), fstab(5) NOTES
1. generator specification http://www.freedesktop.org/wiki/Software/systemd/Generators systemd 208 SYSTEMD-EFI-BOOT-GENERATOR(8)