Added config file
This commit is contained in:
@ -6,6 +6,8 @@ sudo apt-get install apache2 rtl-sdr librtlsdr-dev libncurses-dev python-gi-cair
|
||||
# script
|
||||
mkdir -p ~/bin
|
||||
cp ads-b.sh ~/bin
|
||||
cp -r config/* ~/.config
|
||||
cp start_rpi.sh ~
|
||||
|
||||
# rules
|
||||
sudo cp *.rules /etc/udev/rules.d
|
||||
@ -26,7 +28,3 @@ cd ..
|
||||
sudo cp config.js /var/www/html/dump1090-fa
|
||||
cd /var/www/html/dump1090-fa
|
||||
sudo ln -fs /run/dump1090-fa data
|
||||
|
||||
# startup
|
||||
cp -r config/* ~/.config
|
||||
cp start_rpi.sh ~
|
||||
|
||||
37
Projects/PiRTC/hwclock-set
Executable file
37
Projects/PiRTC/hwclock-set
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
# Reset the System Clock to UTC if the hardware clock from which it
|
||||
# was copied by the kernel was in localtime.
|
||||
|
||||
dev=$1
|
||||
|
||||
#if [ -e /run/systemd/system ] ; then
|
||||
# exit 0
|
||||
#fi
|
||||
|
||||
if [ -e /run/udev/hwclock-set ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f /etc/default/rcS ] ; then
|
||||
. /etc/default/rcS
|
||||
fi
|
||||
|
||||
# These defaults are user-overridable in /etc/default/hwclock
|
||||
BADYEAR=no
|
||||
HWCLOCKACCESS=yes
|
||||
HWCLOCKPARS=
|
||||
HCTOSYS_DEVICE=rtc0
|
||||
if [ -f /etc/default/hwclock ] ; then
|
||||
. /etc/default/hwclock
|
||||
fi
|
||||
|
||||
if [ yes = "$BADYEAR" ] ; then
|
||||
# /sbin/hwclock --rtc=$dev --systz --badyear
|
||||
/sbin/hwclock --rtc=$dev --hctosys --badyear
|
||||
else
|
||||
# /sbin/hwclock --rtc=$dev --systz
|
||||
/sbin/hwclock --rtc=$dev --hctosys
|
||||
fi
|
||||
|
||||
# Note 'touch' may not be available in initramfs
|
||||
> /run/udev/hwclock-set
|
||||
Reference in New Issue
Block a user