Skip to content

Commit

Permalink
[UPDATE] Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hxAri committed Apr 26, 2024
1 parent 543415e commit 4b281b3
Showing 1 changed file with 0 additions and 251 deletions.
251 changes: 0 additions & 251 deletions penguin
Original file line number Diff line number Diff line change
Expand Up @@ -4309,254 +4309,3 @@ if [[ "$1" != "" ]]; then
else
main
fi
exit

function stdio() {
prints=
prefix="\\\\\\\\\\x1b[1;32m"
if [[ $1 != "" ]]; then
if [[ ${1,,} == "stderr" ]]; then
prefix="\\\\\\\\\\x1b[1;31m"
fi
prints="${prefix}$1"
if [[ $2 != "" ]]; then
prints+="\\\\\\\\\\x1b[1;38;5;70m<"
prints+="\\\\\\\\\\x1b[1;38;5;112m$2"
prints+="\\\\\\\\\\x1b[1;38;5;70m>"
if [[ $3 != "" ]]; then
prints="${prefix}$1"
prints+="\\\\\\\\\\x1b[1;38;5;70m<"
prints+="\\\\\\\\\\x1b[1;38;5;112m$2"
prints+="\\\\\\\\\\x1b[1;38;5;70m<"
prints+="\\\\\\\\\\x1b[1;38;5;190m$3"
if [[ $4 != "" ]]; then
prints+="\\\\\\\\\\x1b[1;38;5;214m:"
prints+="\\\\\\\\\\x1b[1;38;5;70m="
prints+="\\\\\\\\\\x1b[1;38;5;120m$4"
fi
prints+="\\\\\\\\\\x1b[1;38;5;70m>>"
fi
fi
echo "\\\\\\\\\\x20\\\\\\\\\\x20$prints\\\\\\\\\\x1b[0m"
fi
}

distro="\$distro"

echo -E "
#!/usr/bin/env bash
echo -e \"#!/usr/bin/env bash
# Distro name.
distro=$distro
# Default \${distro^} Selection.
select=\${default,,}
window=awesome
desktop=xfce
if [[ \\\\\\\$1 != \\\\\"\\\\\" ]]; then
case \\\\\\\${1,,} in
cli) select=cli ;;
window)
select=window
if [[ \\\\\\\$2 != \\\\\"\\\\\" ]]; then
case \\\\\\\${2,,} in
awesome) window=awesome ;;
openbox) window=openbox ;;
i3) window=i3 ;;
*)
echo -e \\\"$(stdio stderr $distro unsupported window)\\\"
exit 1
;;
esac
fi
;;
desktop)
select=desktop
if [[ \\\\\\\$2 != \\\\\"\\\\\" ]]; then
case \\\\\\\${2^^} in
XFCE) desktop=xfce ;;
LXQT) desktop=lxqt ;;
LXDE) desktop=lxde ;;
*)
echo -e \\\"$(stdio stderr $distro unsupported desktop)\\\"
exit 1
esac
fi
;;
*)
echo -e \\\"$(stdio stderr $distro unsupported selection)\\\"
exit 1
;;
esac
fi
# Default \${distro^} Source.
source=\$source/\\\\\\\$select
# Resolve \${distro^} Source.
case \\\\\\\$select in
window) source+=/\\\\\\\$window ;;
desktop) source+=/\\\\\\\$desktop ;;
esac
if [[ ! -d \\\\\\\$source/\$folder ]] || [[ ! -d \\\\\\\$source/\${distro,,}-binds ]] || [[ ! -f \\\\\\\$source/\$launch ]]; then
case \\\\\\\$select in
cli)
echo -e \\\"$(stdio stderr $distro none \\\\\\\$select)\\\"
;;
window)
echo -e \\\"$(stdio stderr $distro \\\\\\\$select \\\\\\\$window)\\\"
;;
desktop)
echo -e \\\"$(stdio stderr $distro \\\\\\\$select \\\\\\\$desktop)\\\"
;;
esac
exit 1
else
if [[ -d \\\\\\\$source/\$folder/proc ]]; then
chmod 755 \\\\\\\$source/\$folder/proc
mkdir -p \\\\\\\$source/\$folder/proc/fakethings
if [[ ! -d \\\\\\\$source/\$folder/proc/fakethings ]]; then
mkdir -p \\\\\\\$source/\$folder/proc/fakethings
fi
if [[ ! -f \\\\\\\$source/\$folder/proc/fakethings/version ]]; then
cat <<- EOF > \\\\\\\$source/\$folder/proc/fakethings/version
\t\t\t\tLinux version 5.4.0-faked (andronix@fakeandroid) (gcc version 4.9.x (Andronix fake /proc/version) ) #1 SMP PREEMPT Sun Sep 13 00:00:00 IST 2020
\t\t\tEOF
fi
if [[ ! -f \\\\\\\$source/\$folder/proc/fakethings/vmstat ]]; then
cat <<- EOF > \\\\\\\$source/\$folder/proc/fakethings/vmstat
\t\t\t\tnr_free_pages 15717
\t\t\t\tnr_zone_inactive_anon 87325
\t\t\t\tnr_zone_active_anon 259521
\t\t\t\tnr_zone_inactive_file 95508
\t\t\t\tnr_zone_active_file 57839
\t\t\t\tnr_zone_unevictable 58867
\t\t\t\tnr_zone_write_pending 0
\t\t\t\tnr_mlock 58867
\t\t\t\tnr_page_table_pages 24569
\t\t\t\tnr_kernel_stack 49552
\t\t\t\tnr_bounce 0
\t\t\t\tnr_zspages 80896
\t\t\t\tnr_free_cma 0
\t\t\t\tnr_inactive_anon 87325
\t\t\t\tnr_active_anon 259521
\t\t\t\tnr_inactive_file 95508
\t\t\t\tnr_active_file 57839
\t\t\t\tnr_unevictable 58867
\t\t\t\tnr_slab_reclaimable 17709
\t\t\t\tnr_slab_unreclaimable 47418
\t\t\t\tnr_isolated_anon 0
\t\t\t\tnr_isolated_file 0
\t\t\t\tworkingset_refault 33002180
\t\t\t\tworkingset_activate 5498395
\t\t\t\tworkingset_restore 2354202
\t\t\t\tworkingset_nodereclaim 140006
\t\t\t\tnr_anon_pages 344014
\t\t\t\tnr_mapped 193745
\t\t\t\tnr_file_pages 218441
\t\t\t\tnr_dirty 0
\t\t\t\tnr_writeback 0
\t\t\t\tnr_writeback_temp 0
\t\t\t\tnr_shmem 1880
\t\t\t\tnr_shmem_hugepages 0
\t\t\t\tnr_shmem_pmdmapped 0
\t\t\t\tnr_anon_transparent_hugepages 0
\t\t\t\tnr_unstable 0
\t\t\t\tnr_vmscan_write 8904094
\t\t\t\tnr_vmscan_immediate_reclaim 139732
\t\t\t\tnr_dirtied 8470080
\t\t\t\tnr_written 16835370
\t\t\t\tnr_indirectly_reclaimable 8273152
\t\t\t\tnr_unreclaimable_pages 130861
\t\t\t\tnr_dirty_threshold 31217
\t\t\t\tnr_dirty_background_threshold 15589
\t\t\t\tpgpgin 198399484
\t\t\t\tpgpgout 31742368
\t\t\t\tpgpgoutclean 45542744
\t\t\t\tpswpin 3843200
\t\t\t\tpswpout 8903884
\t\t\t\tpgalloc_dma 192884869
\t\t\t\tpgalloc_normal 190990320
\t\t\t\tpgalloc_movable 0
\t\t\t\tallocstall_dma 0
\t\t\t\tallocstall_normal 3197
\t\t\t\tallocstall_movable 1493
\t\t\t\tpgskip_dma 0
\t\t\t\tpgskip_normal 0
\t\t\t\tpgskip_movable 0
\t\t\t\tpgfree 384653565
\t\t\t\tpgactivate 34249517
\t\t\t\tpgdeactivate 44271435
\t\t\t\tpglazyfree 192
\t\t\t\tpgfault 46133667
\t\t\t\tpgmajfault 5568301
\t\t\t\tpglazyfreed 0
\t\t\t\tpgrefill 55909145
\t\t\t\tpgsteal_kswapd 58467386
\t\t\t\tpgsteal_direct 255950
\t\t\t\tpgscan_kswapd 86628315
\t\t\t\tpgscan_direct 415889
\t\t\t\tpgscan_direct_throttle 0
\t\t\t\tpginodesteal 18
\t\t\t\tslabs_scanned 31242197
\t\t\t\tkswapd_inodesteal 1238474
\t\t\t\tkswapd_low_wmark_hit_quickly 11637
\t\t\t\tkswapd_high_wmark_hit_quickly 5411
\t\t\t\tpageoutrun 32167
\t\t\t\tpgrotated 213328
\t\t\t\tdrop_pagecache 0
\t\t\t\tdrop_slab 0
\t\t\t\toom_kill 0
\t\t\t\tpgmigrate_success 729722
\t\t\t\tpgmigrate_fail 450
\t\t\t\tcompact_migrate_scanned 43510584
\t\t\t\tcompact_free_scanned 248175096
\t\t\t\tcompact_isolated 1494774
\t\t\t\tcompact_stall 6
\t\t\t\tcompact_fail 3
\t\t\t\tcompact_success 3
\t\t\t\tcompact_daemon_wake 9438
\t\t\t\tcompact_daemon_migrate_scanned 43502436
\t\t\t\tcompact_daemon_free_scanned 248107303
\t\t\t\tunevictable_pgs_culled 66418
\t\t\t\tunevictable_pgs_scanned 0
\t\t\t\tunevictable_pgs_rescued 8484
\t\t\t\tunevictable_pgs_mlocked 78830
\t\t\t\tunevictable_pgs_munlocked 8508
\t\t\t\tunevictable_pgs_cleared 11455
\t\t\t\tunevictable_pgs_stranded 11455
\t\t\t\tswap_ra 0
\t\t\t\tswap_ra_hit 7
\t\t\t\tspeculative_pgfault 221449963
\t\t\tEOF
fi
if [[ ! -f \\\\\\\$source/\$folder/proc/fakethings/stat ]]; then
cat <<- EOF > \\\\\\\$source/\$folder/proc/fakethings/stat
\t\t\t\tcpu 5502487 1417100 4379831 62829678 354709 539972 363929 0 0 0
\t\t\t\tcpu0 611411 171363 667442 7404799 61301 253898 205544 0 0 0
\t\t\t\tcpu1 660993 192673 571402 7853047 39647 49434 29179 0 0 0
\t\t\t\tcpu2 666965 186509 576296 7853110 39012 48973 26407 0 0 0
\t\t\t\tcpu3 657630 183343 573805 7863627 38895 48768 26636 0 0 0
\t\t\t\tcpu4 620516 161440 594973 7899146 39438 47605 26467 0 0 0
\t\t\t\tcpu5 610849 155665 594684 7912479 40258 46870 26044 0 0 0
\t\t\t\tcpu6 857685 92294 387182 8096756 46609 22110 12364 0 0 0
\t\t\t\tcpu7 816434 273809 414043 7946709 49546 22311 11284 0 0 0
\t\t\t\tintr 601715486 0 0 0 0 70612466 0 2949552 0 93228 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12862684 625329 10382717 16209 55315 8510 0 0 0 0 11 11 13 270 192 40694 95 7 0 0 0 36850 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 286 6378 0 0 0 54 0 3239423 2575191 82725 0 0 127 0 0 0 1791277 850609 20 9076504 0 301 0 0 0 0 0 3834621 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 806645 0 0 0 0 0 7243 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2445850 52 1783 0 0 5091520 0 0 0 3 0 0 0 0 0 5475 0 198001 0 2 42 1289224 0 2 202483 4 0 8390 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3563336 4202122 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 17948 0 0 612 0 0 0 0 2103 0 0 20 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 11 11 12 0 12 0 52 752 0 0 0 0 0 0 0 743 0 14 0 0 12 0 0 1863 229 0 464 0 0 0 0 0 0 8588 97 7236426 92766 622 31 0 0 0 18 4 4 0 5 0 0 116013 7 0 0 752406
\t\t\t\tctxt 826091808
\t\t\t\tbtime 1611513513
\t\t\t\tprocesses 288493
\t\t\t\tprocs_running 1
\t\t\t\tprocs_blocked 0
\t\t\t\tsoftirq 175407567 14659158 51739474 28359 5901272 8879590 0 11988166 46104015 0 36107533
\t\t\tEOF
fi
fi
fi
bash \\\\\\\$source/\$launch
\" > \$termux/files/usr/bin/\$binary
chmod +x \$termux/files/usr/bin/\$binary
exit 0
"

0 comments on commit 4b281b3

Please sign in to comment.