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
#!/bin/sh | |
file_to_compress="${2}" | |
path_to_logs="/run/log/" | |
compress_exit_code=0 | |
to_restart=0 | |
rm -f "${path_to_logs}"apache_error_log*.tar.gz | |
if [[ "${file_to_compress}" ]]; then | |
echo "Compressing ${file_to_compress} ..." | |
tar -czf "${file_to_compress}.tar.gz" "${file_to_compress}" |
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
#!/bin/ash | |
echo "Expires: Sun, 27 Feb 1972 08:00:00 GMT" | |
echo "Pragma: no-cache" | |
echo "Cache-Control: no-cache" | |
echo "Content-Type: text/html" | |
echo | |
echo "<HTML><HEAD><META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; charset=UTF-8\"></HEAD><BODY><PRE>" | |
echo "[++++++++++++++++++++++ Advanced EventLog (AEL) Retrieved Reports ++++++++++++++++++++++]" | |
for i in 9 8 7 6 5 4 3 2 1 0; do |
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
int __fastcall write_to_file(void *data_to_write, size_t len_to_write, int fd) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
total_written = 0; | |
do | |
{ | |
while ( 1 ) | |
{ | |
len_written = write(fd, data_to_write, len_to_write); |
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
int __fastcall pjl_getc(_BYTE *ppOut) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
pjl_ctx = get_pjl_ctx(); | |
*ppOut = 0; | |
InputDataBufferSize = pjlContextGetInputDataBufferSize(pjl_ctx); | |
if ( InputDataBufferSize == pjl_get_end_of_file(pjl_ctx) ) | |
{ | |
pjl_set_eoj(pjl_ctx, 0); |
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
unsigned int __fastcall pjl_ldwelcomescreen_internal3( | |
int was_last_write_success, | |
int (__fastcall *pjl_getc)(unsigned __int8 *p_char), | |
ssize_t (__fastcall *write_to_file)(int *p_fd, char *data_to_write, size_t len_to_write), | |
int *p_fd) | |
{ | |
unsigned int current_char_2; // r5 | |
size_t len_to_write; // r4 | |
int len_end_data; // r11 | |
int has_encountered_at_sign; // r6 |
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
unsigned int __fastcall pjl_ldwelcomescreen_internal2( | |
int flag, | |
int one, | |
int (__fastcall *pjl_getc)(unsigned __int8 *p_char), | |
ssize_t (__fastcall *write_to_file)(int *p_fd, char *data_to_write, size_t len_to_write), | |
int *p_fd) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
bad_arg = write_to_file == 0; |
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
unsigned int __fastcall pjl_handle_ldlwelcomescreen_internal(const char *filename) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
if ( !filename ) | |
return 0xFFFFFFFF; | |
fd = open(filename, 0xC1, 0777); // open(filename,O_WRONLY|O_CREAT|O_EXCL, 0777) | |
if ( fd == 0xFFFFFFFF ) | |
return 0xFFFFFFFF; |
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
int __fastcall pjl_handle_ldlwelcomescreen(char *client_cmd) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
result = pjl_check_args(client_cmd, "FILE", "PJL_STRING_TYPE", "PJL_REQ_PARAMETER", 0); | |
if ( result <= 0 ) | |
return result; | |
filename = (const char *)pjl_parse_arg(client_cmd, "FILE", 0); | |
return pjl_handle_ldlwelcomescreen_internal(filename); | |
} |
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
int __fastcall setup_pjl_commands(int a1) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
pjl_ctx = create_pjl_ctx(a1); | |
pjl_set_datastall_timeout(pjl_ctx, 5); | |
sub_11981C(); | |
pjlpGrowCommandHandler("UEL", pjl_handle_uel); | |
... | |
pjlpGrowCommandHandler("LDLWELCOMESCREEN", pjl_handle_ldlwelcomescreen); |
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
Si Ge2-RevB 3.3.22-9h 12 14 25 | |
TIME=Tue Jun 08 20:32:27 2021;COMMIT=863d60b | |
uidc | |
Failure Enabling AVS workaround on 88PG870 | |
setting AVS Voltage to 1050 | |
Bank5 Reg2 = 0x000038E4, VoltBin = 0, efuseEscape = 0 | |
AVS efuse Values: | |
Efuse Programed = 1 |
NewerOlder