feat: KIAUH v4.0.0 #191
@@ -269,7 +269,7 @@ function build_fw(){
|
||||
else
|
||||
cd "${KLIPPER_DIR}"
|
||||
status_msg "Initializing firmware build ..."
|
||||
dep=(build-essential dpkg-dev make)
|
||||
local dep=(build-essential dpkg-dev make)
|
||||
dependency_check "${dep[@]}"
|
||||
|
||||
make clean && make menuconfig
|
||||
|
||||
@@ -114,7 +114,7 @@ function create_moonraker_virtualenv(){
|
||||
function moonraker_setup(){
|
||||
local confirm_msg instances=${1}
|
||||
### checking dependencies
|
||||
dep=(git wget curl unzip dfu-util virtualenv)
|
||||
local dep=(git wget curl unzip dfu-util virtualenv)
|
||||
### additional required dependencies on armbian
|
||||
dep+=(libjpeg-dev zlib1g-dev)
|
||||
dependency_check "${dep[@]}"
|
||||
|
||||
@@ -248,7 +248,7 @@ function set_nginx_cfg(){
|
||||
if [ "${SET_NGINX_CFG}" = "true" ]; then
|
||||
local cfg="${SRCDIR}/kiauh/resources/${1}"
|
||||
#check for dependencies
|
||||
dep=(nginx)
|
||||
local dep=(nginx)
|
||||
dependency_check "${dep[@]}"
|
||||
#execute operations
|
||||
status_msg "Creating Nginx configuration for ${1} ..."
|
||||
|
||||
@@ -68,7 +68,7 @@ function octoprint_setup_dialog(){
|
||||
function octoprint_setup(){
|
||||
local instances="${1}"
|
||||
### check and install all dependencies
|
||||
dep=(
|
||||
local dep=(
|
||||
git
|
||||
wget
|
||||
python3-pip
|
||||
|
||||
@@ -26,8 +26,8 @@ function install_pgc_for_klipper(){
|
||||
echo -e "${cyan}\n###### On which port should PrettyGCode run? (Default: ${pgc_default_port})${white} "
|
||||
read -e -p "${cyan}###### Port:${white} " -i "${pgc_default_port}" pgc_custom_port
|
||||
### check nginx dependency
|
||||
dep=(nginx)
|
||||
dependency_check
|
||||
local dep=(nginx)
|
||||
dependency_check "${dep[@]}"
|
||||
### clone repo
|
||||
[ -d "${PGC_DIR}" ] && rm -rf "${PGC_DIR}"
|
||||
cd "${HOME}" && git clone "${PGC_FOR_KLIPPER_REPO}"
|
||||
|
||||
@@ -577,7 +577,7 @@ function change_hostname(){
|
||||
|
|
||||
function set_hostname(){
|
||||
local new_hostname=${1} current_date
|
||||
#check for dependencies
|
||||
dep=(avahi-daemon)
|
||||
```suggestion
sudo cp "/etc/hosts" "/etc/hosts.${current_date}.bak"
```
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk. I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
```
###### Creating backup of hosts file ...
cp: missing destination file operand after '/etc/hosts /etc/hosts.220503-2314.bak'
Try 'cp --help' for more information.
```
Thank you! Yes that was indeed a typo and i just fixed it. Thank you! Yes that was indeed a typo and i just fixed it.
|
||||
local dep=(avahi-daemon)
|
||||
```suggestion
sudo cp "/etc/hosts" "/etc/hosts.${current_date}.bak"
```
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk. I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
```
###### Creating backup of hosts file ...
cp: missing destination file operand after '/etc/hosts /etc/hosts.220503-2314.bak'
Try 'cp --help' for more information.
```
Thank you! Yes that was indeed a typo and i just fixed it. Thank you! Yes that was indeed a typo and i just fixed it.
|
||||
dependency_check "${dep[@]}"
|
||||
|
||||
#create host file if missing or create backup of existing one with current date&time
|
||||
|
||||
```suggestion
sudo cp "/etc/hosts" "/etc/hosts.${current_date}.bak"
```
```suggestion
sudo cp "/etc/hosts" "/etc/hosts.${current_date}.bak"
```
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk. I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
```
###### Creating backup of hosts file ...
cp: missing destination file operand after '/etc/hosts /etc/hosts.220503-2314.bak'
Try 'cp --help' for more information.
```
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk. I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
```
###### Creating backup of hosts file ...
cp: missing destination file operand after '/etc/hosts /etc/hosts.220503-2314.bak'
Try 'cp --help' for more information.
```
Thank you! Yes that was indeed a typo and i just fixed it. Thank you! Yes that was indeed a typo and i just fixed it.
Thank you! Yes that was indeed a typo and i just fixed it. Thank you! Yes that was indeed a typo and i just fixed it.
|
||||
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
I had to make this change in order to fix the error I got when I attempted to change the hostname (4/advanced, 7/change hostname from the menus) on armbian-22.05-trunk.
Thank you! Yes that was indeed a typo and i just fixed it.
Thank you! Yes that was indeed a typo and i just fixed it.