delete smart-smart-test
This commit is contained in:
parent
125c8a685e
commit
cae94a40f2
@ -174,7 +174,6 @@
|
||||
|
||||
lsof
|
||||
|
||||
disk-smart-test
|
||||
reflac
|
||||
|
||||
pfetch-rs
|
||||
|
||||
26
overlays.nix
26
overlays.nix
@ -31,32 +31,6 @@ final: prev: {
|
||||
'';
|
||||
};
|
||||
|
||||
disk-smart-test = prev.writeShellApplication {
|
||||
name = "disk-smart-test";
|
||||
runtimeInputs = with prev; [
|
||||
gnugrep
|
||||
coreutils
|
||||
smartmontools
|
||||
];
|
||||
|
||||
text = ''
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This command requires root."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
for i in /dev/disk/by-id/*; do
|
||||
case "$i" in
|
||||
*\\-part[0-9]*) continue ;;
|
||||
esac
|
||||
echo -n "$i "
|
||||
smartctl -a "$i" | grep "SMART overall-health self-assessment test result:" | cut -d' ' -f6
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
reflac = prev.writeShellApplication {
|
||||
name = "reflac";
|
||||
runtimeInputs = with prev; [ flac ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user