Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (29 sloc) 767 Bytes
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
for i in /sys/block/mmcblk*/queue; do
echo deadline >$i/scheduler
echo 5000 >$i/iosched/write_expire
echo 500 >$i/iosched/read_expire
echo 1 >$i/iosched/fifo_batch
echo 4 >$i/iosched/writes_starved
echo "Restoring last backup"
mkfs -q /dev/ram1 8192
mkdir -p /ramcache
mount /dev/ram1 /ramcache
df -H | grep ramcache
mkdir -p /ramcache/www
cp -r /root/backup/* /ramcache
/bin/bash /root/aquaponics/
#nothing goes below the next line
exit 0