92 Commits

Author SHA1 Message Date
Jeremy O'Brien
3efa96b292 enhancement: Improve the backup script
- Significantly decrease time it takes to save a backup
- Remove host dependency on 'zip' binary
- Preserve file attributes on backed-up files
- Avoid copying files on the pi itself to /tmp

Signed-off-by: Jeremy O'Brien <neutral@fastmail.com>
2019-10-31 14:02:07 -04:00
Dispsylala
5255e5fd13 Fix default setting to be an array, otherwise the iterator works over
characters, not strings.
2019-10-30 01:05:58 +00:00
Ciara Brennan
0ad6e887ac check zip is installed first
Signed-off-by: Ciara Brennan <ciara.brennan@gmail.com>
2019-10-28 11:49:24 +00:00
evilsocket
15b815d8ad
Merge pull request #422 from benleb/patch-1
polish backup.sh: add username, .bashrc to backup files, fix shellcheck lint issues
2019-10-27 18:00:13 +01:00
Ben Lebherz
5119bf4326 quote shifting 2019-10-27 17:59:06 +01:00
Dispsylala
65a3553521 Remove reference to VideoHandler, added reference to
Peer::first_encounter()
2019-10-27 15:43:42 +00:00
Josh Soref
1c2ff20ab4 spelling: lifting 2019-10-26 22:08:50 -04:00
Ben Lebherz
d5007385f3
add username option, .bashrc to backup files, implement shellcheck hints 2019-10-27 01:35:13 +02:00
Simone Margaritelli
546c7fe397 fix: chown backup file (fixes #409) 2019-10-26 17:15:42 +02:00
Simone Margaritelli
3ad426916f small refactoring to facilitate integration of the bond equation 2019-10-23 15:20:16 +02:00
Simone Margaritelli
c954bf8ffa fix: refactored backup.sh script to not require root login 2019-10-21 15:41:45 +02:00
Simone Margaritelli
a058d2e00d fix: removed deprecated script 2019-10-18 15:57:40 +02:00
Simone Margaritelli
82bf9b9853
misc: small fix or general refactoring i did not bother commenting 2019-10-14 14:38:24 +02:00
Simone Margaritelli
6793312691
misc: small fix or general refactoring i did not bother commenting 2019-10-13 18:02:11 +02:00
dadav
31b4095fa5 Fix path 2019-10-08 22:31:40 +02:00
Simone Margaritelli
d86e3cbc27 misc: removed legacy update script 2019-10-08 19:30:18 +02:00
Simone Margaritelli
223bce8abc fix: fixed paths in scripts/backup.sh 2019-10-08 19:29:22 +02:00
Simone Margaritelli
bba025e64c fix: fixed released script 2019-10-08 15:26:32 +02:00
Simone Margaritelli
0577972867 new: if more than one peer are present, display their number (closes #201) 2019-10-07 18:42:57 +02:00
Andrea Draghetti
a787e78f93
Proper management of the IF cycle 2019-10-07 16:00:46 +02:00
Simone Margaritelli
8ef1f0f377
misc: small fix or general refactoring i did not bother commenting 2019-10-07 00:27:22 +02:00
dadav
b4d7ea7dbf Add peer 2019-10-06 19:59:03 +02:00
evilsocket
5ad03c6e46
Merge pull request #175 from gh0stshell/master
Updated bmaptool check #2
2019-10-06 12:27:50 +02:00
dadav
eb3836ba1e Fix path to pwnagotchi 2019-10-06 08:55:51 +02:00
gh0stshell
2682a5487a
Removed extra return 2019-10-05 22:26:03 -07:00
gh0stshell
3bb42549f6
BMAPTOOL Check #2 update
switched second check with faster builtin tool, tested fix
2019-10-05 22:25:10 -07:00
Simone Margaritelli
0b07bf3621
misc: small fix or general refactoring i did not bother commenting 2019-10-06 00:27:21 +02:00
evilsocket
10a3500d27
Merge pull request #165 from dadav/feature/multi_display_preview
Feature/multi display preview
2019-10-06 00:22:50 +02:00
dadav
03318bdaef Change code 2019-10-06 00:18:54 +02:00
Simone Margaritelli
6bc507412a pypi upload script 2019-10-06 00:18:36 +02:00
Justin Perdok
106c87847d
typo 2019-10-05 20:23:05 +02:00
Justin-p
6a1a16556e Script will now ask which adaptors it should use instead of trying to find the correct ones by default 2019-10-05 20:15:12 +02:00
Ross Simpson
6e4fe624ec
Fix incorrect config filename in update script
The update script backs up the config file to `/root/config.bak`, but
then tries to restore it from `/root/config.yml.bak` (which obviously
won't be found).

This looks like a typo in the backup command, so update that command to
use the same filename as the restore command.

Signed-off-by: Ross Simpson <ross@rosssimpson.com>
2019-10-04 22:01:44 +10:00
evilsocket
046e9a0fe7
Merge pull request #125 from gh0stshell/master
Updated depends, updated bmap check
2019-10-04 10:40:10 +02:00
Forrest Fuqua
01535176ed
Update create_sibling.sh
Fixed Array Call for the gender
2019-10-03 19:49:38 -04:00
gh0stshell
79871cd291
Updated depends, bmap check update
Removed bmap-tools from depends as the check on line 96 looks for bmaptools and would use it if available if not continue to build, but have it as a depend check made the check null and if someone is on a kernel/file-system that does not support SEEK_HOLE and SEEK_DATA the script just fails.

Fixed bmap-tools check as the line which bmaptool >/dev/null 2>&1 does not return 0 so it kept ending at this line, if bmap-tools were not installed

The original code below looks for sparse to be 0 and if which bmaptool >/dev/null 2>&1 returns 0 to use bmap-tools, but I think its the reverse so swapped the last then and else sections as it would then look if sparse is 0 and which bmaptool >/dev/null 2>&1 is 0 to not use bmap-tools, but if it is 1 to use bmap-tools. If tool is available = 1 use bmap-tools, if tools is unavailable=0 do not use bmap-tools:

if [ "${OPT_SPARSE}" -eq 0 ];
  then
    which bmaptool >/dev/null 2>&1
    if [ $? -eq 0 ];
    then
      echo "[+] Defaulting to sparse image generation as bmaptool is available"
      OPT_SPARSE=1
2019-10-03 16:21:02 -07:00
gh0stshell
83705c27f5
Updated depends, bmaptool check update
Removed bmap-tools from depends as the check on line 96 looks for bmaptools and would use it if available if not continue to build, but have it as a depend check made the check null and if someone is on a kernel/file-system that does not support SEEK_HOLE and SEEK_DATA the script just fails.

Fixed bmap-tools check as the line which bmaptool >/dev/null 2>&1 does not return 0 so it kept ending at this line, if bmap-tools were not installed

The original code below looks for sparse to be 0 and if which bmaptool >/dev/null 2>&1 returns 0 to use bmap-tools, but I think its the reverse so swapped the last then and else sections as it would then look if sparse is 0 and which bmaptool >/dev/null 2>&1 is 0 to not use bmap-tools, but if it is 1 to use bmap-tools. If tool is available = 1 use bmap-tools, if tools is unavailable=0 do not use bmap-tools:

if [ "${OPT_SPARSE}" -eq 0 ];
  then
    which bmaptool >/dev/null 2>&1
    if [ $? -eq 0 ];
    then
      echo "[+] Defaulting to sparse image generation as bmaptool is available"
      OPT_SPARSE=1
2019-10-03 16:19:47 -07:00
Simone Margaritelli
affb8c27c3 refactor 2019-10-04 00:33:06 +02:00
Justin-p
177804328c updated configure.md and added small note on Create-HNetObjects function 2019-10-03 23:48:36 +02:00
Justin-p
061a5771ae Added powershell script to automate internet connection sharing on windows 2019-10-03 23:44:21 +02:00
Forrest Fuqua
92a63c3863
Update File to randomize gender in build scripts 2019-10-03 17:05:07 -04:00
evilsocket
99aa4edbed
Merge pull request #100 from dadav/fix/languages
Fix all languages
2019-10-03 17:07:27 +02:00
Simone Margaritelli
4cf2866737 new: integrated python standard logger (closes #84) 2019-10-03 17:06:40 +02:00
dadav
f0a0bd2fea Fix all languages 2019-10-03 16:59:19 +02:00
Simone Margaritelli
335e6b1311 backups 2019-10-03 15:55:03 +02:00
Simone Margaritelli
95b9d0ee1e readme config override 2019-10-03 15:02:08 +02:00
sp3nx0r
6f4eccb317 resolve conflicts 2019-10-03 06:57:55 -05:00
sp3nx0r
540eb69ead resolve conflict, adjust getopts args, add /etc/motd to backup 2019-10-03 06:49:18 -05:00
Simone Margaritelli
5622318e91 new: added changelog script 2019-10-03 13:27:13 +02:00
Simone Margaritelli
67a91169df fix: sed for macOS is 'special' ... 2019-10-03 13:22:46 +02:00