This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
guides:virtual_modem:section_4 [2019-02-18 03:13] omolini [Making Virtual Modem run at startup] |
guides:virtual_modem:section_4 [2019-02-18 03:13] omolini [Making Virtual Modem run at startup] |
||
---|---|---|---|
Line 78: | Line 78: | ||
There are two ways you can do this: | There are two ways you can do this: | ||
- | You can either run the following command which will automatically add VModem to your /etc/rc.local: | + | **1)** You can either run the following command which will automatically add VModem to your /etc/rc.local: |
<code bash> | <code bash> | ||
sudo sh -c 'printf "`head -n -1 /etc/rc.local`\n\ncd /boot/vmodem\n./vmodem.sh &\n\nexit 0\n" >/etc/rc.local' | sudo sh -c 'printf "`head -n -1 /etc/rc.local`\n\ncd /boot/vmodem\n./vmodem.sh &\n\nexit 0\n" >/etc/rc.local' | ||
</code> | </code> | ||
- | Or you can edit your rc.local manually. Make sure your /etc/rc.local has the following at the bottom: | + | **2)** Or you can edit your rc.local manually. Make sure your /etc/rc.local has the following at the bottom: |
<code bash> | <code bash> | ||
# Start serial port and simulate a modem | # Start serial port and simulate a modem |