mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 15:53:36 +05:00
Compare commits
3 Commits
383aa6fa4e
...
298eb72f2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
298eb72f2e | ||
|
|
d800d356ca | ||
|
|
6a766f7882 |
@@ -43,6 +43,7 @@ function backup_config_dir() {
|
|||||||
|
|
||||||
local i=0 folder folder_name target_dir
|
local i=0 folder folder_name target_dir
|
||||||
for folder in ${config_pathes}; do
|
for folder in ${config_pathes}; do
|
||||||
|
if [[ -d ${folder} ]]; then
|
||||||
status_msg "Create backup of ${folder} ..."
|
status_msg "Create backup of ${folder} ..."
|
||||||
|
|
||||||
folder_name=$(echo "${folder}" | rev | cut -d"/" -f2 | rev)
|
folder_name=$(echo "${folder}" | rev | cut -d"/" -f2 | rev)
|
||||||
@@ -52,6 +53,7 @@ function backup_config_dir() {
|
|||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
|
|
||||||
ok_msg "Backup created in:\n${target_dir}"
|
ok_msg "Backup created in:\n${target_dir}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
ok_msg "No config directory found! Skipping backup ..."
|
ok_msg "No config directory found! Skipping backup ..."
|
||||||
|
|||||||
@@ -358,6 +358,7 @@ function get_usb_id() {
|
|||||||
unset mcu_list
|
unset mcu_list
|
||||||
sleep 1
|
sleep 1
|
||||||
mcus=$(find /dev/serial/by-id/* 2>/dev/null)
|
mcus=$(find /dev/serial/by-id/* 2>/dev/null)
|
||||||
|
mcus+=" $(find /dev/serial/by-path/* 2>/dev/null)"
|
||||||
|
|
||||||
for mcu in ${mcus}; do
|
for mcu in ${mcus}; do
|
||||||
mcu_list+=("${mcu}")
|
mcu_list+=("${mcu}")
|
||||||
|
|||||||
Reference in New Issue
Block a user