| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #!/bin/bash
- #
- # Copyright (c) 2019 Clementine Computing LLC.
- #
- # This file is part of PopuFare.
- #
- # PopuFare is free software: you can redistribute it and/or modify
- # it under the terms of the GNU Affero General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # PopuFare is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU Affero General Public License for more details.
- #
- # You should have received a copy of the GNU Affero General Public License
- # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
- #
- # A 'quick and dirty' script to help see differences between repo
- # and installed programs
- #
- b=/home/bus
- s=/home/bus/popufare/busunit
- function check_fn {
- _a=$1
- _b=$2
- if [[ ! -e $_a || ! -e $_b ]] ; then
- echo "# one of $_a $_b not found"
- return -1
- fi
- xa=`sha256sum $_a | cut -f1 -d' '`
- xb=`sha256sum $_b | cut -f1 -d' '`
- if [[ "$xa" != "$xb" ]] ; then
- echo "# MISMATCH $_a $_b:"
- sha256sum $_a $_b
- return -2
- fi
- return 0
- }
- export check_fn
- check_fn $b/config/html/index.html $s/DIUv2/html/index.html
- check_fn $b/config/html/js/diu_ui.js $s/DIUv2/html/js/diu_ui.js
- check_fn $b/config/html/css/diustyles.css $s/DIUv2/html/css/diustyles.css
- check_fn $b/config/init.scm $s/passdb/init.scm
- check_fn $b/bin/avls $s/bin/native/avls
- check_fn $b/bin/billdb $s/bin/native/billdb
- check_fn $b/bin/client_supervisor $s/bin/native/client_supervisor
- check_fn $b/bin/debug_client $s/bin/native/debug_client
- check_fn $b/bin/ipc_server $s/bin/native/ipc_server
- check_fn $b/bin/gps_minder $s/bin/native/gps_minder
- check_fn $b/bin/paddlemgr $s/bin/native/paddlemgr
- check_fn $b/bin/passdb $s/bin/native/passdb
- check_fn $b/bin/piu_minder $s/bin/native/piu_minder
- check_fn $b/bin/apply_update_legacy.sh $s/scripts/apply_update_legacy.sh
- check_fn $b/bin/apply_update_popufare.sh $s/scripts/apply_update_popufare.sh
- check_fn $b/bin/apply_update.sh $s/scripts/apply_update.sh
- check_fn $b/config/avls_freq.txt $s/avls/avls_freq.txt
- check_fn $b/bin/rfid_patterns.txt $s/passdb/rfid_patterns.txt
- check_fn $b/bin/connection_tether.sh $s/scripts/connection_tether-ppp.sh
- check_fn $b/bin/custom $s/scripts/custom
- check_fn $b/bin/dim $s/scripts/dim
- check_fn $b/bin/fix_pkg_perm.sh $s/scripts/fix_pkg_perm.sh
- check_fn $b/bin/get_net_ids.sh $s/scripts/get_net_ids.sh
- check_fn $b/bin/init_bus.sh $s/scripts/init_bus.sh
- check_fn $b/bin/reset-gps $s/scripts/reset-gps.py
- check_fn $b/bin/say $s/scripts/say
- check_fn $b/bin/setup-serial.py $s/scripts/setup-serial.py
- check_fn $b/bin/showmessage $s/scripts/showmessage
- check_fn $b/bin/start-kiosk.sh $s/scripts/start-kiosk.sh
- check_fn $b/bin/unpack_server_data.sh $s/scripts/unpack_server_data.sh
- check_fn $b/bin/update_loop.sh $s/scripts/update_loop.sh
- check_fn $b/bin/volumeset $s/scripts/volumeset
|