From 5212649d94ccf8265a03695216e42e0857756341 Mon Sep 17 00:00:00 2001 From: nagumii Date: Sat, 8 Feb 2025 02:22:28 +0200 Subject: [PATCH] Delete ttyd.sh --- .../usr/local/bin/packages/ttyd.sh | 203 ------------------ 1 file changed, 203 deletions(-) delete mode 100644 foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/ttyd.sh diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/ttyd.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/ttyd.sh deleted file mode 100644 index 38a588c..0000000 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/ttyd.sh +++ /dev/null @@ -1,203 +0,0 @@ -#!/bin/bash -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root. Try \`sudo\`." - exit 1 -fi -if [ $# -eq 0 ]; then - echo "No arguments provided." - echo -e "$help" - exit 1 -fi - -args="$@" # arguments to this script -interactive="true" -help=$(cat </dev/null; then # if service is enabled - systemctl restart ttyd - fi -} - - -while getopts ":$options" opt; do - case ${opt} in - h) # Option -h (help) - echo -e "$help" - ;; - x) # Option -x (no user interaction available) - interaction="false" - ;; - i) # Option -i (install) - install - ;; - u) # Option -u (uninstall) - uninstall - ;; - a) # Option -a (interactive initialization) - interactive_init - ;; - g) # Option -g (upgrade) - upgrade - ;; - e) # Option -e (Enable service, if applicable) - systemctl enable $service_name - ;; - d) # Option -d (Disable service, if applicable) - systemctl disable $service_name - ;; - s) # Option -s (Stop service) - systemctl stop $service_name - ;; - r) # Option -r (Start/Restart) - systemctl restart $service_name - ;; - l) # Option -l (Run software) - echo "Launching $name..." - sudo -u ${SUDO_USER:-$(whoami)} $launch - ;; - N) echo -e $name ;; - A) echo -e $author ;; - D) echo $description ;; - U) echo -e $URL ;; - O) echo -e $options ;; - S) # Option -S (Get service status) - systemctl status $service_name - ;; - E) # Option -E (Get service name) - echo $service_name - ;; - L) echo -e $location ;; - G) # Option -G (Get license) - license - ;; - P) echo -e $package_name ;; - C) echo -e $conflicts ;; - I) # Option -I (Check if already installed) - check - ;; - k) # Option -k (Regenerate SSL keys) - generate_keys - ;; - esac -done - -exit 0 \ No newline at end of file