MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / toggle_menu_autostart

Function toggle_menu_autostart

Scripts/Settings.py:2190–2204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2188 while IFS="$TAB" read -r target mode part_dir; do
2189 [ -n "$target" ] || continue
2190 mkdir -p "$(dirname "$STAGE/$target")"
2191 : > "$STAGE/$target"
2192 found=0
2193 for part in "$STAGE/$part_dir"/part-*; do
2194 [ -f "$part" ] || continue
2195 cat "$part" >> "$STAGE/$target"
2196 found=1
2197 done
2198 [ "$found" = 1 ] || fail "Missing split parts for $target"
2199 chmod "$mode" "$STAGE/$target" 2>/dev/null || true
2200 done < "$SPLIT_MANIFEST"
2201fi
2202
2203# Preserve a small clean-install rollback point before overlaying the transfer.
2204rm -rf "$PRE"
2205mkdir -p "$PRE"
2206[ -d "$PREFIX/etc" ] && cp -a "$PREFIX/etc" "$PRE/usr-etc" 2>/dev/null || true
2207[ -d "$HOME/.termux" ] && cp -a "$HOME/.termux" "$PRE/home-termux" 2>/dev/null || true

Callers 1

mainFunction · 0.70

Calls 7

printFunction · 0.85
get_current_menu_styleFunction · 0.70
update_bashrcFunction · 0.70
_Function · 0.70

Tested by

no test coverage detected