Benesch Csaba
Occasional Visitor
Hi all,
I have two hdds, with 4 partiton.
UUID=ff566fb4-d01d-49ca-b01d-c68b1afcc190 swap swap defaults 0 0
UUID=bfd1a872-4008-4ace-9468-1b9fe3fcb9cc /tmp/mnt/optware-ng ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=e97a6f5d-dade-4ad5-9ba1-48505444fa21 /tmp/mnt/data1 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=d3d00527-fc54-48ce-825f-25014446d722 /tmp/mnt/data2 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
the services started more faster (dont wait for hdds), for example minidlna and transmissiobt give me a error, because optware-ng, data 1 and data2 are not mounted....
I have the following scripts in my jffs:
UUID=ff566fb4-d01d-49ca-b01d-c68b1afcc190 swap swap defaults 0 0
UUID=bfd1a872-4008-4ace-9468-1b9fe3fcb9cc /tmp/mnt/optware-ng ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=e97a6f5d-dade-4ad5-9ba1-48505444fa21 /tmp/mnt/data1 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=d3d00527-fc54-48ce-825f-25014446d722 /tmp/mnt/data2 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
post-mount script:
#!/bin/sh
if [ "$1" = "/tmp/mnt/optware-ng" ] ; then
ln -nsf $1/optware-ng.arm /tmp/opt
fi
services-start:
#!/bin/sh
RC='/opt/etc/init.d/rc.unslung'
i=60
until [ -x "$RC" ] ; do
i=$(($i-1))
if [ "$i" -lt 1 ] ; then
logger "Could not start Optware-NG"
exit
fi
sleep 1
done
$RC start
init-start:
#!/bin/sh
echo 524288 > /proc/sys/net/core/rmem_max
echo 524288 > /proc/sys/net/core/wmem_max
echo 8192 > /proc/sys/vm/min_free_kbytes
firewall-start:
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT
iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT
How can I say.... How can I delay all services to waiting first to mount all drives and swap drive?
Firmware ist 380.57.3_HGG-FINAL and I use optware-ng.
I have two hdds, with 4 partiton.
UUID=ff566fb4-d01d-49ca-b01d-c68b1afcc190 swap swap defaults 0 0
UUID=bfd1a872-4008-4ace-9468-1b9fe3fcb9cc /tmp/mnt/optware-ng ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=e97a6f5d-dade-4ad5-9ba1-48505444fa21 /tmp/mnt/data1 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=d3d00527-fc54-48ce-825f-25014446d722 /tmp/mnt/data2 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
the services started more faster (dont wait for hdds), for example minidlna and transmissiobt give me a error, because optware-ng, data 1 and data2 are not mounted....
I have the following scripts in my jffs:
UUID=ff566fb4-d01d-49ca-b01d-c68b1afcc190 swap swap defaults 0 0
UUID=bfd1a872-4008-4ace-9468-1b9fe3fcb9cc /tmp/mnt/optware-ng ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=e97a6f5d-dade-4ad5-9ba1-48505444fa21 /tmp/mnt/data1 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
UUID=d3d00527-fc54-48ce-825f-25014446d722 /tmp/mnt/data2 ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
post-mount script:
#!/bin/sh
if [ "$1" = "/tmp/mnt/optware-ng" ] ; then
ln -nsf $1/optware-ng.arm /tmp/opt
fi
services-start:
#!/bin/sh
RC='/opt/etc/init.d/rc.unslung'
i=60
until [ -x "$RC" ] ; do
i=$(($i-1))
if [ "$i" -lt 1 ] ; then
logger "Could not start Optware-NG"
exit
fi
sleep 1
done
$RC start
init-start:
#!/bin/sh
echo 524288 > /proc/sys/net/core/rmem_max
echo 524288 > /proc/sys/net/core/wmem_max
echo 8192 > /proc/sys/vm/min_free_kbytes
firewall-start:
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT
iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT
How can I say.... How can I delay all services to waiting first to mount all drives and swap drive?
Firmware ist 380.57.3_HGG-FINAL and I use optware-ng.