Compare commits
9 Commits
feature/rp
...
feature/po
Author | SHA1 | Date | |
---|---|---|---|
|
3cbf0f9d71 | ||
|
970365d5bf | ||
|
e0090cdf1b | ||
|
f62cbc4678 | ||
|
62ffe94201 | ||
|
7e5bf88d27 | ||
|
8944370e0a | ||
|
122ef70e09 | ||
|
a7f5c5402d |
@@ -18,6 +18,11 @@ maintainer=\
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
"gettext/host"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
|
@@ -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=\
|
||||
|
45
systems/lauv-aux-rpi/fs/etc/rc.d/lauv-storage-client
Normal file
45
systems/lauv-aux-rpi/fs/etc/rc.d/lauv-storage-client
Normal 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
|
||||
}
|
28
systems/lauv-aux-rpi/fs/etc/rc.d/usbmount
Normal file
28
systems/lauv-aux-rpi/fs/etc/rc.d/usbmount
Normal 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"
|
||||
}
|
||||
|
11
systems/lauv-aux-rpi/lauv-xtreme-2-cam.cfg
Normal file
11
systems/lauv-aux-rpi/lauv-xtreme-2-cam.cfg
Normal 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'
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user