Commit Graph

139 Commits

Author SHA1 Message Date
Rune Magnussen
a98408c95e Always se long poll() timeout
Many init systems do their own backgrounding so use long timeout
unconditionally. Change suggested by Manuel Domke.
2018-01-04 16:51:48 +01:00
Manuel Domke
fb1f4ab8c5 Update README.md 2017-12-23 21:20:01 +01:00
Manuel Domke
29b2752688 cleanup init_scripts directory 2017-12-23 21:07:27 +01:00
Bill
3268edbf6c Merge pull request #37 from manuel-domke/refactoring
improved error handling for listing devices and nicer output
2017-12-23 11:27:15 -08:00
Bill
be18034641 Merge pull request #35 from runema/opt-struct
Introduce struct for parsed options
2017-12-23 11:26:51 -08:00
Bill
7614ba8f5b Merge pull request #28 from captainpete/master
Sample init scripts
2017-12-23 11:23:00 -08:00
Manuel Domke
7fae449d27 formatting 2017-12-23 15:41:56 +01:00
Manuel Domke
d8a5473dab removed redundant VEND_ID and PROD_ID 2017-12-23 15:38:32 +01:00
Manuel Domke
6cd6b88b43 improved error handling for listing devices and nicer output 2017-12-23 15:37:35 +01:00
Manuel Domke
298f9f56fb fixed stopping of service when device is unplugged 2017-12-23 15:30:23 +01:00
Rune Magnussen
2eebda163d Only force new entropy once a minute when backgrounded
Make the poll-timeout one minute if the option --daemon is used.
This saves a lot og CPU-time.
2017-12-01 16:18:29 +01:00
Rune Magnussen
54101c0de4 Introduce struct opt_struct for parsed options.
Parsed options are now placed in a structure which is passed as
argument to functions reduce the number of parameters. This makes
the call sites simpler. It also makes more informations available
to the functions.
2017-11-30 23:04:22 +01:00
Manuel Domke
15f27862e9 Merge branch 'master' into master 2017-09-20 21:37:56 +02:00
Rune Magnussen
259267a7de OpenRC script: Fix dependencies
Wait for filesystems to be mounted. This makes sure there is a
place to write the PID-file.
Provide "trng" for other scripts to depend on.
2017-09-19 16:42:12 +02:00
Rune Magnussen
3427d5b177 Add OpenRC based init script for Gentoo
Add a startup script for OpenRC based Gentoo-systems-
2017-09-15 20:52:51 +02:00
Rune Magnussen
250b5957fe Move startup scripts to scripts directory
Move init- and udev-scripts to ther own directory.
2017-09-15 15:19:36 +02:00
Rune Magnussen
b1c311fe06 Fix compiler-warning from GCC 6.4
Redefining #defines gives a warning. That is trated like an error
with current compiler options.
2017-09-10 09:52:28 +02:00
Manuel Domke
bc3a73fc4a Merge pull request #1 from manuel-domke/patch-1
updated readme
2017-08-30 20:01:17 +02:00
Manuel Domke
268bca6e49 updated readme
added repos and link to releases
updated udev rule
new command line options --serial and --list-devices
2017-08-30 19:58:01 +02:00
Peter Hollows
bd857a3974 move udev rules file into init_scripts folder 2017-08-30 18:09:16 +10:00
Peter Hollows
ef47936f8f move archlinux systemd file into init_scripts folder 2017-08-30 18:09:01 +10:00
Peter Hollows
3eb5e07fd3 Replace systemd file with existing one from software folder 2017-08-30 18:08:30 +10:00
Peter Hollows
b393ae89f3 software/README: add note on init_scripts folder 2017-08-30 12:01:36 +10:00
Peter Hollows
6ce1386244 Add software/init_scripts folder with sample init scripts 2017-08-30 11:58:24 +10:00
Manuel Domke
a6bccc6b01 oops, refactored too much 2017-08-29 18:58:16 +02:00
Manuel Domke
fe1d217296 finally renamed constants... 2017-08-29 18:56:09 +02:00
Bill Cox
07efda146a Changed some formatting 2017-08-29 09:20:52 -07:00
Manuel Domke
858139e782 Improved error handling 2017-08-29 17:26:02 +02:00
Manuel Domke
79fd4ae3ae Implemented --serial and --list-devices to specify device to start for 2017-08-29 15:50:58 +02:00
Manuel Domke
1f75f919a7 removed spaces 2017-07-29 00:14:20 +02:00
Manuel Domke
6ff74b3f6d Added install for $(PREFIX)/sbin 2017-07-28 23:57:29 +02:00
Manuel Domke
c61552cafe Merge branch 'master' into master 2017-07-28 23:33:52 +02:00
Bill
2f881f93b8 Merge pull request #25 from Wanderingidea/patch-4
Update infnoise.service.archlinux
2017-07-28 09:35:09 -07:00
Wanderingidea
44cc0393ac Update infnoise.service.archlinux 2017-07-28 17:39:45 +02:00
Wanderingidea
eb048594ca Update infnoise.service
'sysctl status infnoise' produces 'Failed to parse service restart specifier, ignoring: never'. Option 'never' is not recognized. Changed to 'no'.
2017-07-28 17:37:54 +02:00
Manuel Domke
6c395fc5ec Merge branch 'master' of https://github.com/manuel-domke/infnoise 2017-07-28 08:46:01 +02:00
Manuel Domke
58dcb2e5e7 Added default prefix 2017-07-28 08:43:06 +02:00
Manuel Domke
e4f89bc1cc Added install & postinstall targets 2017-07-28 08:37:50 +02:00
Bill
66eecc058e Merge pull request #20 from Wanderingidea/patch-2
Update Makefile
2017-07-27 18:33:41 -07:00
Manuel Domke
3c6ee9f1a4 fixed path to binary 2017-07-28 00:18:35 +02:00
Manuel Domke
f2f616087b Merge https://github.com/waywardgeek/infnoise 2017-07-28 00:13:10 +02:00
Manuel Domke
15e8bc87bc Create infnoise.service.archlinux 2017-07-27 21:47:00 +02:00
Bill
9f48e323a1 Merge pull request #21 from manuel-domke/master
Improved un-/replug behaviour with systemd/udev rule
2017-07-27 12:33:23 -07:00
Wanderingidea
064cbd5fad Update Makefile
Make without parameters tries to install - corrected by moving install section to the bottom of Makefile.
2017-07-27 08:16:32 +02:00
Wanderingidea
03a7b22210 Update Makefile
Now that we have a systemd service, an install option might be convenient.
2017-07-26 19:31:42 +02:00
Manuel Domke
f757e2a4d5 Add udev symlink to stop service...
.. when device is unplugged.
2017-07-26 18:46:33 +02:00
Manuel Domke
48e74d124d Forking service, no more autorestart 2017-07-26 18:45:06 +02:00
Manuel Domke
df13adbbea Added udev rule to start the TRNG via systemd 2017-07-25 19:50:44 +02:00
Bill Cox
3e406cfbb2 Initialize Keccak before use 2017-03-26 08:26:15 -07:00
Bill
9d21c4ec06 Merge pull request #11 from ko-pp/master
Fix for Bug #10 (-lfdti or -lfdti1)
2016-09-08 18:38:52 -07:00