-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7505a45
commit ed57304
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=starts up user placed scripts in /etc/user_startup_scripts.d/ | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/etc/user_startup_scripts.d/user_startup_scripts | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Place .sh here to be run at startup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
hdparm -S 60 /dev/sdb | ||
hdparm -S 60 /dev/sdc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
for f in /etc/user_startup_scripts.d/*.sh; do | ||
"$f" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
echo 0 > /sys/module/zswap/parameters/enabled | ||
modprobe zram num_devices=2 | ||
echo lz4hc > /sys/block/zram0/comp_algorithm | ||
echo zstd > /sys/block/zram1/comp_algorithm | ||
echo 2G > /sys/block/zram0/disksize | ||
echo 10G > /sys/block/zram1/disksize | ||
mkswap /dev/zram0 | ||
mkswap /dev/zram1 | ||
swapon /dev/zram0 -p 32767 | ||
swapon /dev/zram1 -p 32766 |