Compare commits

...

9 Commits

Author SHA1 Message Date
Pedro Gonçalves
3cbf0f9d71 lctr-rpi/rpi-camera-aux: add lauv-storage-client to cfg_services1. 2018-04-30 18:41:12 +01:00
Pedro Gonçalves
970365d5bf lctr-rpi/rpi-camera-aux: add usbmount to cfg_services1. 2018-04-20 20:09:08 +01:00
Pedro Gonçalves
e0090cdf1b lauv-aux-rpi/fs/etc/rc.d: add service usbmount to mount usb in /opt/lsts/dune/log. 2018-04-20 20:08:20 +01:00
Pedro Gonçalves
f62cbc4678 lauv-aux-rpi/lauv-xtreme-2-cam: add ptpd rule. 2018-04-10 23:07:06 +01:00
Pedro Gonçalves
62ffe94201 mpc: update url of package. 2018-04-08 17:03:03 +01:00
Pedro Gonçalves
7e5bf88d27 exiv2: add required gettext. 2018-04-08 17:02:23 +01:00
Pedro Gonçalves
8944370e0a Merge branch 'feature/gcc_5.4' into feature/pointgrey 2018-04-08 13:24:29 +01:00
Pedro Gonçalves
122ef70e09 systems/lauv-aux-rpi: add lauv-xtreme-2-cam config file. 2018-04-04 20:48:30 +01:00
Pedro Gonçalves
a7f5c5402d system/lctr-a6xx/lauv-xtreme-2: add opencv and exiv2 to cfg packages. 2018-04-04 20:43:33 +01:00
6 changed files with 91 additions and 2 deletions

View File

@@ -18,6 +18,11 @@ maintainer=\
'Pedro Gonçalves <pedro@lsts.pt>'
)
requires=\
(
"gettext/host"
)
configure()
{
./configure \

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"http://www.multiprecision.org/mpc/download/mpc-$version.tar.gz"
"https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz"
)
md5=\

View File

@@ -0,0 +1,45 @@
mount_path()
{
rpath="$cfg_lauv_storage_host:$1"
lpath="$1"
mkdir -p "$lpath"
mount -t nfs -o wsize=32768 "$rpath" "$lpath"
if [ $? -eq 0 ]; then
echo "* Mounted '$rpath' in '$lpath'"
return 0
fi
return 1
}
start()
{
/usr/bin/rpcbind
if [ $? -ne 0 ]; then
echo "ERROR: failed to start rpcbind."
return 1
fi
for path in $cfg_lauv_storage_paths; do
n=0; while [ $n -lt "$cfg_lauv_storage_timeout" ]; do
mount_path "$path"
if [ $? -eq 0 ]; then
break
fi
let n++
sleep 1
done
done
}
stop()
{
killall rpcbind
for path in $cfg_lauv_storage_paths; do
umount "$path"
done
}

View File

@@ -0,0 +1,28 @@
try_mount_storage()
{
n=0; while [ $n -lt 30 ]; do
/bin/mount "$1" /opt/lsts/dune/log
if [ $? -eq 0 ]; then
return 0
fi
sleep 1
let n++
done
return 1
}
start()
{
try_mount_storage /dev/sda1
echo "* USB Mounted in /opt/lsts/dune/log"
}
stop()
{
/bin/umount /dev/sda1
echo "* USB Umounted"
}

View File

@@ -0,0 +1,11 @@
cfg_hostname='lauv-xtreme-2-cam'
cfg_eth_ext_ip='10.0.10.52'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_lauv_storage_dir=/opt/lsts/dune/log
cfg_lauv_storage_host=10.0.10.53
cfg_lauv_storage_paths=/opt/lsts/dune/log
cfg_lauv_storage_timeout=60
cfg_ptpd_interface='eth0'
cfg_services1='lauv-storage-client'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools rpcbind rpi-boot-firmware linux/rpi exiv2 pointgrey opencv nfs-utils ptpd'

View File

@@ -1,6 +1,6 @@
cfg_hostname='lauv-xtreme-2'
cfg_eth_ext_ip='10.0.10.50'
cfg_packages="$cfg_packages rpcbind nfs-utils"
cfg_packages="$cfg_packages rpcbind nfs-utils exiv2 opencv"
cfg_services1='lauv-storage-client'
cfg_lauv_storage_host='10.0.10.53'
cfg_lauv_storage_paths='/opt/lsts/dune/log'