-
Notifications
You must be signed in to change notification settings - Fork 690
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
af588be
commit 5c0ca66
Showing
23 changed files
with
463 additions
and
337 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
extra-files/modify-xiaomi-router-4a-3g-v2.sh
100644 → 100755
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
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
Empty file.
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
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,16 @@ | ||
def _wrap_with(code): | ||
|
||
def inner(text, bold=False): | ||
c = code | ||
if bold: | ||
c = '1;{!s}'.format(c) | ||
return '\033[{!s}m{!s}\033[0m'.format(c, text) | ||
return inner | ||
|
||
red = _wrap_with(31) | ||
green = _wrap_with(32) | ||
yellow = _wrap_with(33) | ||
blue = _wrap_with(34) | ||
magenta = _wrap_with(35) | ||
cyan = _wrap_with(36) | ||
white = _wrap_with(37) |
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,37 @@ | ||
#!/bin/sh | ||
|
||
color_out() { | ||
if [ "$3" = "bold" ]; then | ||
printf "\e[1;$1m%s\e[0;0m\n" "$2" | ||
else | ||
printf "\e[0;$1m%s\e[0;0m\n" "$2" | ||
fi | ||
} | ||
|
||
red() { | ||
color_out 31 "$1" "$2" | ||
} | ||
|
||
green() { | ||
color_out 32 "$1" "$2" | ||
} | ||
|
||
yellow() { | ||
color_out 33 "$1" "$2" | ||
} | ||
|
||
blue() { | ||
color_out 34 "$1" "$2" | ||
} | ||
|
||
magenta() { | ||
color_out 35 "$1" "$2" | ||
} | ||
|
||
cyan() { | ||
color_out 36 "$1" "$2" | ||
} | ||
|
||
white() { | ||
color_out 37 "$1" "$2" | ||
} |
Empty file.
Oops, something went wrong.