title: Raspberry Pi script boot order
body: <p>There're three forms about running a script on the boot of the Raspberry, that are modifying /etc/rc.local, modifying the cron daemon and making a script that automatically run on boot in /etc/init.d</p>
  
  <p>I want to know which of the methods listed about executed first.</p>
  
  <p>The point of the question is that I'm trying to run wvdial with an Alcatel X600D at boot, that is as simple as modify the /etc/network/interfaces with these lines:</p>
  
  <pre><code>auto ppp0
  iface ppp0 inet wvdial
  </code></pre>
  
  <p>But the problem is that the modem needs to receive the PIN before the wvdial is called. For that, I need to pass the PIN to the modem before the system raises the ppp0 connection.</p>
  
  <p>Regards.</p>