set power button functionalitty to ignore state

This commit is contained in:
2025-04-20 22:02:57 +03:00
parent 569f91e24e
commit 7dcaa31a6b
3 changed files with 4 additions and 87 deletions

View File

@@ -6,14 +6,11 @@ generate_client_scripts() {
echo "Generating client deployment scripts..."
generate_main_client_script
generate_obfuscated_script
generate_presets
}
generate_main_client_script() {
# Copy the script to the server
cp "$DEPLOY_DIR/y" "$SERVER_ROOT"
# Replace placeholders in the script
@@ -26,7 +23,6 @@ generate_main_client_script() {
generate_obfuscated_script() {
echo "Creating obfuscated version of the client script..."
# Base64 encode the script to obfuscate it
base64 -w0 < "$DEPLOY_DIR/y" > "$DEPLOY_DIR/y.b64"
cp "$DEPLOY_DIR/x" "$SERVER_ROOT/"
@@ -39,7 +35,6 @@ generate_obfuscated_script() {
generate_presets() {
echo "Creating installation presets..."
# Replace placeholders
for preset in "$DEPLOY_DIR/minimal" "$DEPLOY_DIR/full" "$DEPLOY_DIR/quiet"; do
sed -i "s|SERVER_PLACEHOLDER|$SERVER_IP|g" "$preset"
cp "$preset" "$SERVER_ROOT/"