Update eval.sh
Browse files
eval.sh
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Evaluation script to verify that power profile is set to power-saver
|
| 3 |
+
|
| 4 |
+
echo "Checking current power profile..."
|
| 5 |
+
|
| 6 |
+
# Get the current power profile
|
| 7 |
+
current_profile=$(powerprofilesctl get)
|
| 8 |
+
|
| 9 |
+
echo "Current power profile: $current_profile"
|
| 10 |
+
|
| 11 |
+
# Check if the power profile is set to power-saver
|
| 12 |
+
if [ "$current_profile" = "power-saver" ]; then
|
| 13 |
+
echo "All files have the correct permissions."
|
| 14 |
+
echo "Power profile successfully set to power-saver mode"
|
| 15 |
+
else
|
| 16 |
+
echo "Some files do not have the correct permissions."
|
| 17 |
+
echo "Power profile is not set to power-saver (current: $current_profile)"
|
| 18 |
+
fi
|