Commit Graph

839 Commits

Author SHA1 Message Date
Gerold Gruber
68a6002ff1 temp statistics for SAS drives 2023-10-12 12:37:32 +02:00
Gerold Gruber
47112c4de2 some code cleaning, time debugging added 2023-10-11 00:05:57 +02:00
Gerold Gruber
97efd12b93 fixes 2023-10-10 14:32:32 +02:00
Gerold Gruber
3bc3de37ae included hddtemp code for SCSI disk temperatures 2023-10-10 14:01:20 +02:00
PartialVolume
525cf037c5 Merge pull request #496 from ggruber/master
bustype detection with smartctl works (again?)
2023-10-06 20:38:57 +01:00
Gerold Gruber
f764c39390 bustype detection with smartctl works (again?) 2023-10-06 00:45:44 +02:00
PartialVolume
c6ff341f7e Merge pull request #494 from PartialVolume/fix_endian_model_name
fix_endian_model_name
2023-10-02 22:48:45 +01:00
PartialVolume
948368bc28 Merge pull request #493 from ggruber/master
fix for issue #492
2023-10-02 22:48:22 +01:00
PartialVolume
59d73107f6 fix_endian_model_name
Some IDE USB adapter chipsets get the endian wrong for model name
This fix identifies a endian swapped model name and corrects it.

The function currently only includes Samsung but I'll add more IDE
drive manufacturers as I come across them.

This is peculiar to some USB IDE adapters. I've never seen this
issue with SATA, ATA drives connected directly to the motherboard.
2023-10-02 22:37:54 +01:00
Gerold Gruber
8124e6b3d5 added -P option for PDFreportpath 2023-10-02 20:28:49 +02:00
Gerold Gruber
c1e943d283 improved formatted fix for issue #492 2023-10-02 17:30:28 +02:00
Gerold Gruber
8124d2d493 improved fix for issue #492 2023-10-02 16:42:41 +02:00
Gerold Gruber
7c9939e228 possible solution for issue #418 2023-10-02 00:21:49 +02:00
Gerold Gruber
4675a17693 manpage typo 2023-10-01 23:52:38 +02:00
Gerold Gruber
bbcb4fc219 fix for issue #492 2023-10-01 23:45:48 +02:00
PartialVolume
65a3a45a38 Merge pull request #491 from PartialVolume/Fix_segfault_on_logfile_write_permissions
Fix intermittent segfault when --logfile specified without insufficient permissions to write to directory
2023-09-29 21:22:20 +01:00
PartialVolume
f1fe7d6bd7 Fix intermittent segfault when --logfile specified
Under the following conditions a segfault will
occur upon starting nwipe.

Run nwipe with --logfile option AND run nwipe in a directory that does
not have write permissions so the logfile can't be created AND run nwipe
without sudo or root or as as a user without sufficient privileges so
you don't have permissions to write to the directory.
2023-09-29 21:05:31 +01:00
PartialVolume
50951dff03 Merge pull request #490 from PartialVolume/PDFGen35
PDFGen35 Complete Date & time functions
2023-09-28 22:31:58 +01:00
PartialVolume
2d730eac2e PDFGen35 Complete Date & time functions
Add functions:
nwipe_gui_set_system_day()
nwipe_gui_set_system_hour()
nwipe_gui_set_system_minute()
2023-09-28 22:15:52 +01:00
PartialVolume
16b87cc2bd Merge pull request #489 from PartialVolume/PDFGen34
Created further date/time functions.
2023-09-14 22:16:34 +01:00
PartialVolume
ea1c2019cd Created further date/time functions.
write_system_datetime() and
nwipe_gui_set_system_month()
2023-09-14 22:07:37 +01:00
PartialVolume
c5b4e58cee Merge pull request #487 from PartialVolume/PDFGen33
Create function read_system_datetime()
2023-09-05 19:09:49 +01:00
PartialVolume
8a46658820 Create function read_system_datetime()
The purpose of this is to read year, month, day, hours
minutes and seconds into variables for updating in the GUI
prior to writing back to the system.

For systems isolated from the internet this will allow the
user to update system date/time from the nwipe GUI rather than
having to drop into the command line.

To complete this feature next will be to create the write_system_datetime
function.
2023-09-05 19:01:08 +01:00
PartialVolume
1e50f2fd2c Merge pull request #485 from PartialVolume/PDFGen32
PDFGen32 Create Set Date/Time window in GUI
2023-08-14 22:01:19 +01:00
PartialVolume
60d38a80e4 PDFGen32 Create Set Date/Time window in GUI
Created a window where you can edit the systems
date and time. To be completed.
2023-08-14 21:53:10 +01:00
PartialVolume
c72f740587 Merge pull request #484 from PartialVolume/PDFGen31
PDFGen31 Created truncate string function
2023-08-11 22:29:58 +01:00
PartialVolume
ba4c4c51f1 PDFGen31 Created truncate string function
Created a function that truncates a string that is printed
to a window if the string should exceed the window width.

This prevents the line wrap that occurs with mvwprintw
when the window width is not wide enough. This mainly
occurs with a 4:3 ratio monitor, 80 columns wide.
2023-08-11 21:41:48 +01:00
PartialVolume
86d71d0858 Update README.md
Removed the download link to the build script. As it's only a short script it can be copied and pasted from the github page.
2023-08-08 11:12:24 +01:00
PartialVolume
bb0cd2258d Update README.md - Add libconfig-dev libconfig++-dev
Added libconfig-dev libconfig++-dev to the build script
2023-08-08 11:03:26 +01:00
PartialVolume
4c703a6922 Merge pull request #483 from PartialVolume/PDFGen30
PDFGen30 Added org, customer & date/time preview
2023-08-05 23:26:32 +01:00
PartialVolume
9f92ec1b29 PDFGen30 Added org, customer & date/time preview
Created a window that shows a preview of organisational,
customer and date time information that will be added to
the PDF report. Items within the preview can be selected
which takes you to the relevant window for editing the
data. This can be optionally displayed before the drive
selection window is displayed.

To complete this I need to add a further entry in the
config window to allow editing date & time. Plus a
function needs to be added to truncate the strings
based on window width as some address strings could
be wider than the window and mess up the display as
they wrap to the next line.
2023-08-05 23:13:41 +01:00
PartialVolume
17a391f971 Merge pull request #482 from PartialVolume/PDFGen29
PDFGen29 Fix incorrect customer deletion/selection
2023-08-04 17:29:14 +01:00
PartialVolume
b40563ab22 PDFGen29 Fix incorrect customer deletion/selection
When using backspace or esc to abort customer deletion,
first customer in list would incorrectly be deleted.
Corrected by this fix.

Also when aborting customer selection, first customer
in list would be automatically selected. Also corrected
by this fix.
2023-08-04 17:14:39 +01:00
PartialVolume
7fc4325d69 Merge pull request #481 from PartialVolume/PDFGen28
PDFGen28 Completed customer delete feature.
2023-08-03 00:15:57 +01:00
PartialVolume
c137736997 PDFGen28 Completed customer delete feature. 2023-08-02 23:54:35 +01:00
PartialVolume
1a3e7eb23e Merge pull request #480 from PartialVolume/PDFGen27
PDFGen27 Cleaned up customer selection list
2023-07-27 23:47:15 +01:00
PartialVolume
e6034cf94e PDFGen27 Cleaned up customer selection list
Removed the csv field double quotes from the customer
selection list as displayed on screen. The double quotes will
still obviously exist in the csv file and are required
for the code to work correctly in various places. However, for
human readable text they are removed before displaying the
customer details line on the selection screen as it makes the
list look less 'busy' on screen hopefully.

I also fixed a issue where spaces were incorrectly being removed
from the customer details when filtering for printable characters
only.
2023-07-27 23:36:11 +01:00
PartialVolume
ce628e5c17 Merge pull request #479 from PartialVolume/PDFGen26
PDFGen26 Completed the code that adds a customer
2023-07-27 02:51:00 +01:00
PartialVolume
3dcc40c0e7 PDFGen26 Completed the code that adds a customer
Completed the code that adds a customer and saves
in /etc/nwipe.customers.csv so they can be selected
for display on the PDF report.
2023-07-27 02:46:09 +01:00
PartialVolume
1582f8c224 Merge pull request #477 from PartialVolume/PDFGen25
PDFGen25 Continuation of add customer csv
2023-07-25 22:24:57 +01:00
PartialVolume
a3fd0b71ca PDFGen25 Continuation of add customer csv
Continuation of add a customer entry to the
customers.csv file.

Plus a few corrections to earlier code.
2023-07-25 22:16:42 +01:00
PartialVolume
580429a371 Merge pull request #476 from PartialVolume/PDFGen24
PDFGen24 Created dialogs for adding a customer
2023-07-24 23:09:46 +01:00
PartialVolume
b46575cd63 PDFGen24 Created dialogs for adding a customer 2023-07-24 22:56:42 +01:00
PartialVolume
0d403a20a3 Merge pull request #475 from PartialVolume/PDFGen23
Completed the code that writes the user selected customer to nwipe's config file
2023-07-19 01:12:05 +01:00
PartialVolume
baefd77605 Completed code that writes selected customer to nwipe's config file /etc/nwipe/nwipe.conf 2023-07-19 01:03:49 +01:00
PartialVolume
9f8aecaa52 Merge pull request #473 from PartialVolume/PDFGen22
PDFGen22 Further work completed on customer selection and deletion
2023-07-18 02:10:43 +01:00
PartialVolume
0948596559 PDFGen22 Further work completed on customer selection and deletion dialogs 2023-07-18 02:06:33 +01:00
PartialVolume
2630edbea1 Merge pull request #472 from PartialVolume/PDFGen21
PDFGen21 Completed all GUI dialog boxes for entering organisational data.
2023-07-14 23:12:33 +01:00
PartialVolume
e74ae252ef PDFGen21 Completed all GUI dialog boxes for entering organisational data. Confirmed the data is correctly saved to /etc/nwipe/nwipe.conf and read back for automatic entry into the PDF erasure report. Further work is required to create dialog entry screens for customer details.. to be continued. 2023-07-14 23:00:17 +01:00
PartialVolume
2ebea57008 Merge pull request #471 from PartialVolume/PDFGen20
PDFGen20 Started creating new GUI dialogs.  A Configuration dialog and sub dialogs for allowing the user to enter business and customer details. Further dialog windows and code to be added...
2023-07-13 22:34:31 +01:00