Quantcast
Viewing all articles
Browse latest Browse all 44

Answer by Mohammad Ali for Can't mount Raspberry Pi NFS Server

First I would make the following bash script and call it delay:

#!/bin/bash# $1:delay time(s)# $2:command# example:#    delay 10 "conky -d"sleep $1exec $2

Then I would make it executable

chmod a+x delay

You could put the command from your comments:

delay 60 "sudo systemctl restart nfs-kernel-server"

at the end of the rc.local file in /etc/init.d/ to have it run 60 seconds after every time the Pi boots up


Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>