Commit Graph

204 Commits

Author SHA1 Message Date
Matteo Cypriani a1f0a747a8 [wifi] capture: fix channel setting on Linux
On Linux, at least with the rt2500pci driver, the interface must be down
to set the mode, but up (and in managed mode) to set the channel.
2011-08-07 22:12:19 +02:00
Matteo Cypriani 5fd3e62717 [wifi] capture: fix mktemp for Linux
Add a 3rd character to the random part of the temporary directory, to
satisfy GNU's mktemp.
2011-08-07 22:00:42 +02:00
Matteo Cypriani 9a5853d48a [wifi] capture: fix channel setting
At least on NetBSD with the ath driver, it is impossible to change the
channel when the interface is in monitor mode (actually it is possible,
but when the interface is turned up again the channel is set back to its
prior value).
Therefore, to set the interface in monitor mode on a given channel, we
must:
- shut down,
- switch to managed mode (media autoselect) with the wanted channel,
- turn up,
- shut down again,
- switch to monitor mode,
- turn up again.

I implemented the same behaviour for Linux, maybe it's useless but it
can't hurt.
2011-08-07 21:30:14 +02:00
Matteo Cypriani 81611af216 [wifi] capture: always delete output directory
Always delete the output directory, even in case of error.
2011-08-07 21:02:05 +02:00
Matteo Cypriani edc7cc4dfd [wifi] capture: refactoring 2011-08-07 21:02:01 +02:00
Matteo Cypriani 6739ade2a6 [wifi] capture: test each channel
Try to capture on each channel, in case there is no traffic on the first
channel.
2011-08-07 21:01:57 +02:00
Matteo Cypriani ddfa6e0b49 [wifi] capture: add date to archive name
Add the current date and time to the archive name.
Set the random part of the name to 2 characters.
2011-08-06 15:49:43 +02:00
Matteo Cypriani 627102d6ce [wifi] capture: NetBSD support 2011-08-06 12:40:37 +02:00
Matteo Cypriani 99ea201832 [wifi] capture: add OS release to archive name
Add the OS release version to the archive name.
Extend the random part of the name to 10 characters.
2011-08-06 12:38:10 +02:00
Matteo Cypriani 9df17ae493 [wifi] capture: set the channel 2011-08-06 12:01:40 +02:00
Matteo Cypriani 4a68134713 [wifi] capture: add OS to the archive name 2011-08-06 00:39:42 +02:00
Matteo Cypriani 65dd809c6b [wifi] capture: gather system information 2011-08-06 00:39:37 +02:00
Matteo Cypriani f23d52b435 [wifi] Add capture.sh
capture.sh is a script to automatically capture a few packets on a Wi-Fi
interface and write them to a Pcap file.
2011-08-06 00:39:37 +02:00
Matteo Cypriani 6216033aa4 Add Expat license 2011-08-06 00:39:31 +02:00
Matteo Cypriani a5eca28a97 [git] cherry-move: use plumbing to list branches
Use git for-each-ref instead of git branch to check the existence of a
branch.
2011-07-01 15:52:05 +02:00
Matteo Cypriani daa4aab636 [git] Add README 2011-07-01 15:40:56 +02:00
Matteo Cypriani 04100733ce Add git-cherry-move
Like cherry-pick, but to move instead of copy.
2011-07-01 15:17:31 +02:00
Thomas Preud'homme c335527e41 Add the license 2011-05-06 00:33:28 +02:00
Thomas Preud'homme bc2f64c919 Add grep_dd_sigs script
grep_dd_sigs gives the list of DD which have signed a key with their DD
key (the key they have in the Debian keyring).
2011-05-06 00:28:11 +02:00
Thomas Preud'homme ea0213d482 Look for cyrus password in /root/passwords
Change the place to look for cyrus password:
  /root/passwords/cyrus_main_admin_password instead of
  /root/cyrus_main_admin_password
2011-02-05 17:49:33 +01:00
Matteo Cypriani ead9997d68 [xzize] Handle short-suffix compressed tar
- Handle short-suffix compressed Tar archives.
- Test separately if a source file exists and is regular.
- Use return value of test_extension() instead of test equality of DEST
  and SOURCE.
2010-01-31 16:24:19 +01:00
Matteo Cypriani 93601c6310 [compression_utils] Bug fixes on xzize
xzize:
- Fix bug with file names with spaces.
- Fix bug when invoking program without arguments.
- Handle error when input file is not a regular file instead of delegate
  to xz.
- Add an info message when compressing an uncompressed file.

lz:
- Info message on stdout instead of stderr when uncompressing.
2010-01-31 15:27:39 +01:00
Matteo Cypriani f7c2f3aec7 [compression_utils] Add script xzize
xzize is a tool to (re)compress to xz.
2010-01-31 13:13:29 +01:00
Matteo Cypriani 6a40e9ba27 [lz] Rename directory to "compression_utils" 2010-01-31 12:57:46 +01:00
Thomas Preud'homme f784c613f0 [email_account] Update TODO
Handle dot in username
2010-01-29 15:56:58 +01:00
Thomas Preud'homme 8595945b16 [email_account] Add a TODO list and populate
Add a TODO list and populate it with next milestones (allow account
deletion, minimize cyrus and postfix restart, etc.)
2010-01-27 08:17:34 +01:00
Thomas Preud'homme 5fe150c2a8 [email_account] Use getopt to parse options
- Parse options using getopts
- Delete --help option
2010-01-26 19:19:27 +01:00
Thomas Preud'homme 068d816a82 [email_account] Rewrite the number of args test
- Simplify the test of the number of args given (a test was uncessary)
2010-01-26 11:37:58 +01:00
Thomas Preud'homme fe258817f6 [email_account] Restrict scope of var ret in main
Make var ret in function main local to the function and option flags as
well
2010-01-26 11:15:39 +01:00
Thomas Preud'homme 7534e030be [email_account] Handle no args properly
Don't fail with -u when no args are given
2010-01-26 11:14:24 +01:00
Thomas Preud'homme 70b6750518 [email_account] Script now work in unix hierarchy
- To be able to create mailbox with accountname containing dots, the
  script need to support unixhierarchy
2010-01-26 08:16:43 +01:00
Thomas Preud'homme 8df27270a5 [email_account] grep -E when using extended regex
When using [::] chars class, use grep -E instead of grep as it is part
of extended regex
2010-01-25 19:24:08 +01:00
Thomas Preud'homme b8191d87b4 [email_account] Allow tabs as separator
Allow tabs as no-op chars in all files manipulated by email_account
(cyrus.conf, imapd.conf, etc…)
2010-01-25 19:20:18 +01:00
Matteo Cypriani 26507780f9 [email_account] Add --quiet to the 1st invoke-rc.d 2010-01-25 14:44:38 +01:00
Matteo Cypriani d42e4057c4 [email_account] Add GPL header and README 2010-01-25 14:43:13 +01:00
Thomas Preud'homme f1c6ab699b [email_account] Ask about restart after sudoing
Ask if the user is ready to restart only after performing the eventual
sudo
2010-01-20 17:14:16 +01:00
Matteo Cypriani 779c586029 [email_account] Redirect error messages to stderr 2010-01-20 16:39:46 +01:00
Matteo Cypriani 16960f727c [email_account] Fix typos in comments and echo
Some typos and English mistakes in comments and in printed messages.
Prefix error messages with "Error!".
2010-01-20 16:35:16 +01:00
Matteo Cypriani d11ba705fe [email_account] Min. nb_tabs in echo_with_tabs()
In echo_with_tabs(), set the number of printed tabs to 1 if it is
evaluated to less than 1 (typically if the third parameter is too small
comparatively to the text length).
2010-01-20 16:29:07 +01:00
Thomas Preud'homme 0361541657 [email_account] call postmap after maps change
Call postmap on /etc/postfix/virtual and /etc/postfix/vmailbox after
changes has occured
2010-01-20 15:03:14 +01:00
Thomas Preud'homme 67347f7806 [email_account] postfix reload after config change
Use invoke-rc.d postfix reload instead of invoke-rc.d postfix restart
2010-01-20 15:01:31 +01:00
Thomas Preud'homme 1f0be8664b Add a script for managing email accounts
This initial version can:
- create a mailbox (cyradm)
- create a mail alias (virtual_{alias|local}_map)
- create a valid recipient for postfix ({virtual|local}_recipient_map)
- create a password for the account (saslpasswd2)
- print settings to set in the MUA to use this account
- test arguments
2010-01-20 14:53:09 +01:00
Matteo Cypriani 0632e91565 Add make_html2text 2010-01-17 17:56:13 +01:00
Matteo Cypriani f2c2e7da8d latexd: Add README and fix header 2010-01-06 22:39:03 +01:00
Matteo Cypriani 7f0fdb7795 mv_here: rename in mvparent, complete + add README
mv_here.sh renamed in mvparent.sh
Complete the script (handles hidden files, more tests and error
reporting, add the WTFPL header).
Add the associated README.
2010-01-06 22:39:03 +01:00
Matteo Cypriani 5806fde85a lz: Fix bug with filename containing spaces
And add a message on standard error for each file listed/extracted.
2010-01-06 22:39:03 +01:00
Matteo Cypriani 902511b64b Early version of mv_here.sh
This script moves the contents of a given directory into its parent
directory, then removes this directory.
This is the version I created to integrate in ROX-Filer.
2010-01-06 22:38:40 +01:00
Matteo Cypriani b31ee9d058 Add latexd.sh 2010-01-05 00:45:53 +01:00
Matteo Cypriani e7e2d94a6c Add license headers and doc
backup_sites_mysql.sh:
- Add WTFPL header.

metaflac-field2field.sh:
- Add WTFPL header.
- English description.

lz:
- Update README and head comments.
2010-01-04 23:29:03 +01:00
Matteo Cypriani 3428ea8e47 lz: tar.Z, short extensions, multiple files
Changes in lz:
- Add support for multiple input files.
- Add support for Compressed Tar archives (.tar.Z).
- Add support for short extensions (tgz, tbz, tb2, tlz, txz, taz).
- Add WTFPL license header.

Add:
- .gitignore
- Text of the GPL v3.
- Text of the WTFPL v2.
2010-01-04 23:28:47 +01:00