Commit Graph

56 Commits

Author SHA1 Message Date
cimryan
b6abdfb726 Simplified tests aren't compatible with bash -u. 2018-10-23 07:27:58 -07:00
cimryan
9898fe95ee Simplify tests for empty variables. Use caps for globals. 2018-10-23 06:52:22 -07:00
cimryan
a8e3671a94 Set the branch and repo only if not already set. 2018-10-23 06:38:32 -07:00
cimryan
5dffdc053b Merge branch 'master' into u/cimryan/verify_archive_mountable 2018-10-23 06:31:01 -07:00
cimryan
71612c46ef Fix errors. 2018-10-22 21:48:27 -07:00
cimryan
1916470ec8 Merge branch 'master' into u/cimryan/fix_errors_on_startup 2018-10-22 19:47:08 -07:00
cimryan
10ce084851 Eliminate BOM from wpa_supplicant.conf 2018-10-22 19:42:54 -07:00
cimryan
5788bc4f7b Verify that the archive is mountable before making changes to the file systems. 2018-10-19 14:26:10 -07:00
cimryan
eb21377738 Remove extra call to check_pushover_enabled 2018-10-19 13:39:52 -07:00
cimryan
25544ad0bb Merge branch 'master' into u/cimryan/fix_errors_on_startup 2018-10-19 11:41:16 -07:00
cimryan
832320aa1a Create the wpa_supplicant file on the boot partition during setup-piForHeadlessConfig.ps1.
Also consolidate the documentation. Removed support for manual setup; that process doesn't add value, anymore.
2018-10-19 10:39:36 -07:00
cimryan
858ae5da39 Fix errors on both the cam and the music filesystems before the archive loop starts. 2018-10-18 20:45:48 -07:00
cimryan
475af79d48 Merge pull request #36 from cimryan/rtgoodwin/updater-script
Rtgoodwin/updater script
2018-10-18 18:39:53 -07:00
cimryan
5f38228860 Get the IP address of the archive server by parsing ping output instead of using getent
This seems to work for more network configurations.
2018-10-18 09:07:13 -07:00
cimryan
e63e697f4e Merge pull request #35 from rtgoodwin/updater-script
Mac folder, config updater script, updated readmes.
2018-10-18 08:52:32 -07:00
Richard Goodwin
e917829a9f Quotes in updater script, Readme updates, remount script. 2018-10-18 07:32:08 -05:00
Richard Goodwin
619852dd26 Of course I missed another typo. 2018-10-17 12:13:43 -05:00
Richard Goodwin
24035c5e86 LAST typo on chmod. Tested working at this point. 2018-10-17 10:24:59 -05:00
Richard Goodwin
dc62ce2ee4 Typo on line to grab pushover script. 2018-10-17 10:07:43 -05:00
Richard Goodwin
32095c04e9 Clean merge with master. 2018-10-17 09:52:45 -05:00
Richard Goodwin
5c62ba93a0 Finalized to open PR 2018-10-16 14:37:09 -05:00
Richard Goodwin
d6e63ff720 Fixed a hyphen typo. 2018-10-16 13:27:11 -05:00
Richard Goodwin
f477fc4348 Even more error checking. 2018-10-16 12:48:07 -05:00
Richard Goodwin
adcf8fd2de Better error checking. 2018-10-16 12:25:15 -05:00
Richard Goodwin
bd90ef535f Initial commit for pushover testing 2018-10-16 11:51:26 -05:00
cimryan
7dfc9de59c Update branch references to master after merge. 2018-10-16 07:44:53 -07:00
cimryan
e608ce5c73 Report success at the end of setup 2018-10-16 07:21:37 -07:00
cimryan
a70b752a16 Make the root fs readonly during setup. 2018-10-15 22:32:36 -07:00
cimryan
657efc9f17 Fix creation of g_mass_storage.conf 2018-10-15 14:50:52 -07:00
cimryan
610613d7b3 Update the partition Ids in /etc/fstab and /boot/cmdline.txt after modifying partitions with parted
Parted changes the disk Ids, rendering the Pi unbootable without this step.
2018-10-15 07:20:44 -07:00
cimryan
012c4e225c Create the file system after creating the partition for the backing files
If there already happened to be a filesystem there is must be overwritten.
2018-10-14 22:21:16 -07:00
cimryan
d2aa8357aa Add logging for fallocate call 2018-10-14 21:49:18 -07:00
cimryan
fc2a436c7e Fix the setting of the host name. 2018-10-14 20:47:32 -07:00
cimryan
c1e840fa9f Make calculations of backng file size in terms of free 1k blocks 2018-10-14 20:39:12 -07:00
cimryan
c0cab4d624 Correct the space allocation for the baking files. 2018-10-14 20:15:46 -07:00
cimryan
9c3daa3d91 Remove unnecessary recreation of filesystem on the backing files partition. 2018-10-14 20:02:42 -07:00
cimryan
aedff01c72 Typo in configure_rc_local name. 2018-10-14 20:01:18 -07:00
cimryan
4970fea833 Create the backing files for the USB drives on a separate partition. 2018-10-14 19:37:24 -07:00
cimryan
98cecb4cbf Reference master after merge. 2018-10-13 20:55:18 -07:00
cimryan
d39d08a738 Mount the archive and move the files into it. 2018-10-13 20:50:34 -07:00
cimryan
d0a1212ca6 Fix syntax error in the calculation of musicpercent. 2018-10-13 19:04:09 -07:00
cimryan
a03c322c01 Support for music in addition to dashcam clip storage. 2018-10-13 18:18:00 -07:00
cimryan
9cfce11bd4 Move moutpoints: usb_share -> cam, cam_archive -> archive 2018-10-13 17:26:58 -07:00
cimryan
641779c1a2 Add closing done for loop. 2018-10-13 17:06:30 -07:00
cimryan
f74c12ffd5 Merge branch 'master' of https://github.com/cimryan/teslausb 2018-10-13 08:12:02 -07:00
cimryan
499d23cb36 Retry mounting the shares up to 10 times.
There's a race between the system mounting the share and the findmnt invocation in the script to determine if the share is already mounted.
When findmnt wins the race the script would previously operate as if the share definitely needed to be mounted, and would fail to mount it.
Now the script will notice that the share has already been mounted.
2018-10-13 08:11:02 -07:00
cimryan
64b323eb76 If the archive is initially reachable wait for it to be unreachable after archiving the clips before archiving the clips, again. 2018-10-13 08:06:55 -07:00
cimryan
b386bcc610 The setup script updates archiveloop with the name of the archive server 2018-10-12 15:45:45 -07:00
cimryan
71e8ba0339 Give the volume a label and don't overwrite hostname with hosts. 2018-10-12 14:33:47 -07:00
cimryan
1d19ac5c2f Make the network name of the Pi "teslausb". 2018-10-12 14:07:20 -07:00