Skip to content

Commit

Permalink
Fix of error on reboot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed May 27, 2024
1 parent bfe685f commit df97919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Machine:
## Say thanks

If you want to thank me for this solution, you can subscribe to my [Github profile](https://github.com/Smoren) and also give stars to [my open source projects](https://github.com/Smoren?tab=repositories&q=&type=public&language=&sort=stargazers), e.g.:
* [MolecuLarva](https://github.com/Smoren/molecular-ts) — Virtual chemistry simultaion. Visualization of the behavior of particles in 2-dimensional and 3-dimensional space.
* [IterTools TS](https://github.com/Smoren/itertools-ts) — Extended itertools port for TypeScript and JavaScript. Provides a huge set of functions for working with iterable collections (including async ones).
* [Schemator PHP](https://github.com/Smoren/schemator-php) — Schematic data mapper for converting nested data structures (any composition of associative arrays, non-associative arrays and objects) according to the given conversion schema.
* [Encryption Tools for python](https://github.com/Smoren/encryptiontools-pypi) — Tools for encryption and decryption, signing and verification. Use symmetric and asymmetric (RSA-based) encryption.
Expand Down
3 changes: 2 additions & 1 deletion huawei-soundcard-headphones-monitor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

# [COMMENTS]
#
Expand Down Expand Up @@ -79,7 +80,7 @@ old_status=0

while true; do
# if headphone jack isn't plugged:
if amixer "-c${card_index}" get Headphone | grep -q "off"; then
if amixer "-c${card_index}" get Headphone | grep -q "off"; then
status=1
move_output_to_speaker
# if headphone jack is plugged:
Expand Down

0 comments on commit df97919

Please sign in to comment.