WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootlocal.sh  (Read 3521 times)

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
bootlocal.sh
« on: June 12, 2015, 08:26:35 AM »
hi,
i not understand
i put in file bootlocal.sh a script
Code: [Select]
/mnt/mmcblk0p2/scripts/fire.pyafter filetools.sh
i reboot
and no fire.py in ps-e
no start
if try on console
Code: [Select]
sudo /mnt/mmcblk0p2/scripts/fire.pyit's good , start ok

why ?
thank
bellad.flnet.org

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: bootlocal.sh
« Reply #1 on: June 12, 2015, 08:58:35 AM »
Try

Code: [Select]
/usr/local/bin/python /mnt/mmcblk0p2/scripts/fire.py
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
Re: bootlocal.sh
« Reply #2 on: June 12, 2015, 09:08:06 AM »
thank you Béla , but it's the same with
bellad.flnet.org

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: bootlocal.sh
« Reply #3 on: June 12, 2015, 09:57:00 AM »
Please share the whole bootlocal.sh
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
Re: bootlocal.sh
« Reply #4 on: June 12, 2015, 11:40:19 AM »
i share monday
bellad.flnet.org

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
Re: bootlocal.sh
« Reply #5 on: June 15, 2015, 03:28:12 AM »
hello,
my bootlocal.sh

Code: [Select]
#!/bin/sh
# put other system startup commands here
loadkmap < /usr/share/kmap/azerty/fr.kmap
/mnt/mmcblk0p2/tiny/eth0.sh &
/usr/local/etc/init.d/openssh start
/usr/local/bin/ntpd
ln -fs /usr/local/etc/zoneinfo/Europe/Paris /etc/localtime
cp /mnt/mmcblk0p2/tiny/gammurc /etc
cp /mnt/mmcblk0p2/tiny/gammu-smsdrc /etc
/usr/local/bin/gammu-smsd
wait 5
/usr/local/bin/python /mnt/mmcblk0p2/scripts/fire.py &
/usr/local/bin/python /mnt/mmcblk0p2/scripts/dossier.py &

bellad.flnet.org

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11591
Re: bootlocal.sh
« Reply #6 on: June 15, 2015, 09:49:06 AM »
Hi bellad
If  fire.py  depends on networking, your network may not yet be up. Try removing the  &  from  /mnt/mmcblk0p2/tiny/eth0.sh
and see what happens.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: bootlocal.sh
« Reply #7 on: June 15, 2015, 02:02:16 PM »
Also, "wait 5" doesn't make sense.
The only barriers that can stop you are the ones you create yourself.

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
Re: bootlocal.sh
« Reply #8 on: June 16, 2015, 05:56:07 AM »
ok , i found ,
i put
Code: [Select]
/usr/local/bin/gammu-smsd after the py scripts
bellad.flnet.org

Offline bellad

  • Jr. Member
  • **
  • Posts: 65
Re: bootlocal.sh
« Reply #9 on: June 16, 2015, 07:35:10 AM »
other , where is vcgencmd ??
thank
bellad.flnet.org

Offline kabera

  • Newbie
  • *
  • Posts: 12
Re: bootlocal.sh
« Reply #10 on: July 17, 2015, 10:44:07 AM »
instead of Wait 5 you need to put sleep 5

Offline kabera

  • Newbie
  • *
  • Posts: 12
Re: bootlocal.sh
« Reply #11 on: July 17, 2015, 10:45:58 AM »
here is my bootlocal.sh

Code: [Select]
#!/bin/sh

# Start serial terminal
/usr/sbin/startserialtty &

# Set CPU frequency governor to ondemand (default is performance)
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# Load modules
/sbin/modprobe i2c-dev

# Start openssh daemon
/usr/local/etc/init.d/openssh start

# ------ Put other system startup commands below this line
/bin/mount -t ext4 -o noatime /dev/sda1 /mnt/sda1
/bin/sleep 3
/bin/cp /mnt/sda1/etc/smb.conf /usr/local/etc/samba/
/bin/sleep 1
/usr/local/bin/smbpasswd -Lan nobody
#/usr/local/sbin/smbd --configfile=/mnt/sda1/etc/smb.conf 
/usr/local/sbin/smbd