How to use - leesy24/scan_2d-laser GitHub Wiki

On Eddy

νŒŒμΌλ“€μ„ Eddy의 /flash 디렉토리에 λ³΅μ‚¬ν•œλ‹€.

# ls -al
...           
-rwxr-xr-x    1 root     root        60672 Oct 17 06:21 arp-scan
-rw-r--r--    1 root     root       541560 Oct 17 06:21 libpcap.so.1.8.1
-rw-r--r--    1 root     root        29400 Oct 17 06:21 libssp.so.0.0.0
-rwxr-xr-x    1 root     root         1199 Oct 18 01:51 scan_2d-laser.sh
-rwxr-xr-x    1 root     root           41 Oct 17 07:14 set_env.sh
...

set_env.shλ₯Ό μ‹€ν–‰ν•˜κ³  μƒˆλ‘œμš΄ νŒŒμΌλ“€μ΄ μƒμ„±λ˜λŠ”κ²ƒ 확인

# source /flash/set_env.sh  
# 
# ls -al           
...
lrwxrwxrwx    1 root     root           16 Oct 17 06:22 libpcap.so.1 -> libpcap.so.1.8.1
...
lrwxrwxrwx    1 root     root           15 Oct 17 06:22 libssp.so.0 -> libssp.so.0.0.0
...

μ‹œμž‘ μŠ€ν¬λ¦½νŠΈμ— scan_2d-laser.sh 와 & λ₯Ό μΆ”κ°€ν•œλ‹€. (예. ttySerial.sh) Add scan_2d-laser.sh with & on start script(ex. ttySerial.sh)

#! /bin/sh

## This file:  /flash/ttySerial.sh
## 
## USE from :  /etc/init.d/S50ttySerial
##
## --------------------------------------------

ip address add 10.0.0.223/16 dev eth0
## ---(USE for DPS2590 IP with 192.168.0.223)-- ##
sleep 1

/flash/scan_2d-laser.sh &

while true; do
....