diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-17 18:42:56 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-17 18:42:56 +0300 |
commit | 6c4c366519c799866c2b2cea1afd21471851c807 (patch) | |
tree | 7ab42bce3adf832939dbe60b3ce8c61967f27fbe /mods/mod_hakchi | |
parent | ff99016bf28edcbac563a64ebba8da3e3b4794de (diff) |
Sync with madmonkey
Diffstat (limited to 'mods/mod_hakchi')
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit | 4 | ||||
-rw-r--r-- | mods/mod_hakchi/hakchi/script/transfer | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit b/mods/mod_hakchi/hakchi/rootfs/etc/preinit index 1753621d..8d2bb643 100644 --- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit @@ -7,8 +7,8 @@ source_parts(){ mkdir -p "$temppath" local script=$temppath/script_$(rand) rm -f "$script" - local searchpath=$(dirname "$1") - [ -d "$searchpath" ] || return 1 + local searchpath=$(dirname "$1") + [ -d "$searchpath" ] || return 1 for i in $(find "$searchpath" -maxdepth 1 -path "$1" | sort); do cat "$i" >> "$script" done diff --git a/mods/mod_hakchi/hakchi/script/transfer b/mods/mod_hakchi/hakchi/script/transfer index 485d28ea..f27b2170 100644 --- a/mods/mod_hakchi/hakchi/script/transfer +++ b/mods/mod_hakchi/hakchi/script/transfer @@ -60,10 +60,5 @@ fi echo transferring data... transfer_path "$transferpath" -[ -d "$rootfs/bin" ] && chmod +x $rootfs/bin/* -[ -d "$rootfs/sbin" ] && chmod +x $rootfs/sbin/* -[ -d "$rootfs/usr/bin" ] && chmod +x $rootfs/usr/bin/* -[ -d "$rootfs/usr/sbin" ] && chmod +x $rootfs/usr/sbin/* - save_config [ "$cf_shutdown" != "y" ] || shutdown |