2023-01-18 16:43:21 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
uci_bash_shell_root_copy () {
|
|
|
|
echo -e "************ copying uci shell .profile and .bashrc files to /root ********"
|
|
|
|
group=root
|
2023-01-18 18:36:28 -08:00
|
|
|
files=$(find $install_dir/files/root -type f)
|
2023-01-18 16:43:21 -08:00
|
|
|
for file in $files; do install -m 640 -o root -g $group $file /root; done
|
|
|
|
}
|
|
|
|
|
|
|
|
# # if script was executed then call the function
|
|
|
|
(return 0 2>/dev/null) || uci_bash_shell_root_copy "$@"
|