-
Notifications
You must be signed in to change notification settings - Fork 40
Optimize Shutdown, Disable MOTD, Disable Cursor Blink #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dezren39
wants to merge
53
commits into
beeper:main
Choose a base branch
from
dezren39-dev:optimize
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
fb8c775
add shutdown
dezren39 eb1be4c
add power
dezren39 8c2aa3f
add power script
dezren39 930dc86
add shutdown script
dezren39 5667633
merge
dezren39 0354ef7
add optimize
dezren39 3f9e2a8
beepy
dezren39 b4e3694
x
dezren39 4d995f1
quot
dezren39 6e17c60
_
dezren39 e50eedc
boot
dezren39 87c5ac5
optimize motd
dezren39 2fa64c7
merge
dezren39 a3c345e
optimize
dezren39 fbec454
fix bug
dezren39 6a84543
Merge branch 'optimize-motd' into optimize
dezren39 8507e9d
cleanup
dezren39 91f2175
improve
dezren39 53f25d3
Merge branch 'optimize-motd' into optimize
dezren39 74a1edd
add shutdown
dezren39 99ccdfc
fixup
dezren39 d08d17b
Merge branch 'optimize-motd' into optimize
dezren39 e92738a
cleanup
dezren39 eb116b3
Update optimize_power.sh
dezren39 09689ca
beeper/beepy/main
dezren39 e922974
modify_cmdline
dezren39 0f3fe4d
set cpu count
dezren39 658454e
improve
dezren39 c220946
refactor
dezren39 ed5b25a
newline
dezren39 4446864
align
dezren39 d2b2f9c
optimize
dezren39 2721de8
Merge branch 'optimize' of https://github.com/dezren39-dev/beepy into…
dezren39 6c97597
login prompt
dezren39 6bb405d
improve
dezren39 7681010
escape
dezren39 8b98756
escape
dezren39 bf51c81
escape again
dezren39 0b98110
escape
dezren39 c7154db
escape2
dezren39 4206f4b
escape3
dezren39 252261d
escape4
dezren39 6e2f31d
escape5
dezren39 2a433a8
no word boundary
dezren39 a09682e
sedawk
dezren39 95987c2
del
dezren39 fddc166
fix
dezren39 25f488a
quots for the quot gods
dezren39 fc55167
disbale to
dezren39 c63bbc6
rename
dezren39 8e8b168
Improve Cursor Visibility (#3)
dezren39 0ef5b0b
disable disables
dezren39 db0a3f6
safe
dezren39 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 @@ | ||
#!/bin/sh | ||
|
||
curl -s "https://raw.githubusercontent.com/dezren39-dev/beepy/optimize/raspberrypi/optimize_boot.sh" | bash | ||
curl -s "https://raw.githubusercontent.com/dezren39-dev/beepy/optimize/raspberrypi/optimize_motd.sh" | bash | ||
curl -s "https://raw.githubusercontent.com/dezren39-dev/beepy/optimize/raspberrypi/optimize_power.sh" | bash | ||
curl -s "https://raw.githubusercontent.com/dezren39-dev/beepy/optimize/raspberrypi/optimize_shutdown.sh" | bash |
This file contains hidden or 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,21 @@ | ||
#!/bin/sh | ||
|
||
sudo_user=${SUDO_USER:-$(whoami)} | ||
sudo_user_home=$(eval echo ~$sudo_user) | ||
touch "$sudo_user_home/.hushlogin" | ||
|
||
# Check for 10-uname | ||
if [ -e "/etc/update-motd.d/10-uname" ]; then | ||
chmod -x /etc/update-motd.d/10-uname* | ||
mv -f /etc/update-motd.d/10-uname /etc/update-motd.d/10-uname.backup.$(date +%s) | ||
fi | ||
|
||
# Check for motd | ||
if [ -e "/etc/motd" ]; then | ||
mv -f /etc/motd /etc/motd.backup.$(date +%s) | ||
fi | ||
|
||
# Check for issue | ||
if [ -e "/etc/issue" ]; then | ||
mv -f /etc/issue /etc/issue.backup.$(date +%s) | ||
fi |
This file contains hidden or 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/sh | ||
|
||
sudo sed -i ' 1 s/.*/& vt.global_cursor_default=0/' /boot/cmdline.txt || { echo "Error: Failed to modify cmdline.txt."; exit 1; } | ||
|
||
|
This file contains hidden or 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,3 @@ | ||
#!/bin/sh | ||
|
||
echo "kernel.printk = -1 -1 -1 -1" > "/etc/sysctl.d/20-quiet-printk.conf" || { echo "Error: Create '/etc/sysctl.d/20-quiet-printk.conf'."; exit 1; } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.