 [PROBLEM] Auto dir creation on start up?
[PROBLEM] Auto dir creation on start up?
| 
					Problem: Auto dir creation on start up?
				 | 
| 
					7th Mar, 2016, 06:03 PM 
				 Post: #1 | |||
| 
 | |||
| Auto dir creation on start up? 
					Hi, for my openvpn to run I need below commands to be executed on start-up: mkdir /dev/net mknod /dev/net/tun c 10 200 chmod 0666 /dev/net/tun Can I set that up in rc.local and how please? Thanks | |||
| 
					7th Mar, 2016, 11:43 PM 
				 Post: #2 | |||
| 
 | |||
| RE: Auto dir creation on start up? 
					Yes you can Just add the three lines to the end of /etc/rc.local Code: sudo nano /etc/rc.local | |||
| 
					8th Mar, 2016, 06:39 AM 
				 Post: #3 | |||
| 
 | |||
| RE: Auto dir creation on start up? 
					So the file should look like this? sudo nano /etc/rc.local mkdir /dev/net sudo nano /etc/rc.local mknod /dev/net/tun c 10 200 sudo nano /etc/rc.local chmod 0666 /dev/net/tun exit 0 Thanks. EDIT: ahhhh nano is an editor, got it, thanks  (7th Mar, 2016 11:43 PM)Nachteule Wrote: Yes you can Hi, Edited file looks like this now: /etc/rc.local mkdir /dev/net /etc/rc.local mknod /dev/net/tun c 10 200 /etc/rc.local chmod 0666 /dev/net/tun exit 0 Strange, I can't see the file in /etc in terminal but, the sudo nano /etc/rc.local edits it... im logged as root. Is there any reason for that? Thank you. EDIT: damn, it is too early here, of course it looks like this: mkdir /dev/net mknod /dev/net/tun c 10 200 chmod 0666 /dev/net/tun exit 0: | |||
| 
					9th Mar, 2016, 12:06 AM 
				 Post: #4 | |||
| 
 | |||
| RE: Auto dir creation on start up? 
					Look to my post #9
				 | |||
| 
					« Next Oldest | Next Newest »
				 |