Skip to content

Commit

Permalink
v2.3.50
Browse files Browse the repository at this point in the history
 - Commande line rescue restoration tool was also affected by the issue in the previous fix upload. Fixed.
 - A few nutshells in text and translation fixed.
  • Loading branch information
wildtruc committed Mar 14, 2024
1 parent 51d0378 commit e307e2d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions zenvidia
Original file line number Diff line number Diff line change
Expand Up @@ -6263,7 +6263,7 @@ menu_manage(){ #
fi
nm=1
unset mng_list
for mng_cmd in $"Documention manual ($(version))" $"Change Logs ($(version))" $"Zenvidia Logs" $"Zenvidia Help" $"About Zenvidia"; do
for mng_cmd in $"Documention manual ($(version))" $"Change Logs ($(version))" $"Zenvidia Logs" $"Zenvidia Help and documentation" $"About Zenvidia"; do
mng_list+=("false")
mng_list+=("$nm")
mng_list+=("$mng_cmd")
Expand Down Expand Up @@ -6512,7 +6512,7 @@ base_menu(){ #
esac
}
}
install_controls(){ # TASK migration line to remove in future release
install_controls(){
if [ -d $install_dir/zenvidia ] ; then
mkdir -p $nvdir
cp -rf $install_dir/zenvidia/* $nvdir/
Expand Down Expand Up @@ -6654,12 +6654,15 @@ default_zen_dir(){ # NOTE user backups dir check to remove in next release.
mkdir -p $(user_CF_DIR)
mkdir -p $(user_CF_DIR)/{compats/series,updates,release,backups}
}
if [ ! -f $(user_CF_DIR)/version.txt ]; then
## to prevent version.txt file to be wrong in case of command line restoration, or
## in case version.txt for a reason or an other is not present, we test and fix if necessary.
if [ ! -f $(user_CF_DIR)/version.txt ]||[ $(cat $(user_CF_DIR)/version.txt| grep -c "$(version)") -eq 0 ]; then
stat /usr/lib/modules/$(uname -r)/$(module_dest_location)/nvidia.* &>/dev/null
[ $? = 0 ] && modinfo -F version nvidia > $(user_CF_DIR)/version.txt
[ $? = 0 ] && modinfo -F version nvidia > $(user_CF_DIR)/version.txt || echo "" > $(user_CF_DIR)/version.txt
fi
[ "$(stat -c %U $(user_CF_DIR))" = "$(def_user)" ] || chown -R $(def_user):$(def_user) $(user_CF_DIR)
# TASK line to remove.
# TASK line to remove in future release.
[ -d $(user_CF_DIR)/backups ] || mkdir -p $(user_CF_DIR)/backups
}
## ### SCRIPT INTRO ###
Expand Down

0 comments on commit e307e2d

Please sign in to comment.