~mmach/netext73/trunk

« back to all changes in this revision

Viewing changes to procedury

  • Committer: netbit73 at gmail
  • Date: 2024-01-20 14:11:21 UTC
  • Revision ID: netbit73@gmail.com-20240120141121-hps0kpk0y9qzfai8
czyszczenie kodu nvidia-settnigs

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
#wersja
112
112
export WERSJA_UBUNTU="$(lsb_release -cs)"
113
113
export NR_WERSJA_UBUNTU="$(lsb_release -rs)"
114
 
export wspierane_wersje="jammy|mantic|noble"
115
 
export wspierane_nr="22.04|23.10|24.04"
 
114
export wspierane_wersje="jammy|noble"
 
115
export wspierane_nr="22.04|24.04"
116
116
 
117
117
#wsparcie mint/elementary os
118
118
case `lsb_release -cs` in
119
 
#       ulyana|ulyssa|uma|odin|jolnir|una)
120
 
#               export WERSJA_UBUNTU="focal"
121
 
#               export NR_WERSJA_UBUNTU="20.04" ;;
122
119
        horus|vanessa|vera|victoria|virginia)
123
120
                export WERSJA_UBUNTU="jammy"
124
121
                export NR_WERSJA_UBUNTU="22.04" ;;
1222
1219
}
1223
1220
 
1224
1221
nvidia_settings(){
1225
 
echo "wersja_ster=\"\$(cat /tmp/wersja_sterownika.txt)\""
1226
 
echo "echo \"\$wersja_ster\""
1227
 
echo "if [ \"\$wersja_ster\" = '495' ];then"
1228
 
echo "tar -Jxf /opt/NeteXt73/pakiety/nvidia-settings-495.tar.xz -C /tmp/"
1229
 
echo "cp -f /tmp/libnvidia-gtk2.so.495.46 /usr/lib/"
1230
 
echo "cp -f /tmp/libnvidia-gtk3.so.495.46 /usr/lib/"
1231
 
echo "cp -f /tmp/nvidia-settings        /usr/bin/"
1232
 
echo "rm -f /tmp/nvidia-settings /tmp/libnvidia-gtk3.so.495.46 /tmp/libnvidia-gtk2.so.495.46"
1233
 
echo "elif [ \"\$wersja_ster\" = '510' ];then"
1234
 
echo "tar -Jxf /opt/NeteXt73/pakiety/nvidia-settings-510.tar.xz -C /tmp/"
1235
 
echo "cp -f /tmp/libnvidia-gtk2.so.510.47.03 /usr/lib/"
1236
 
echo "cp -f /tmp/libnvidia-gtk3.so.510.47.03 /usr/lib/"
1237
 
echo "cp -f /tmp/nvidia-settings        /usr/bin/"
1238
 
echo "rm -f /tmp/nvidia-settings /tmp/libnvidia-gtk3.so.510.47.03 /tmp/libnvidia-gtk2.so.510.47.03"
1239
 
echo "fi"
1240
 
echo "rm -f /tmp/wersja_sterownika.txt"
 
1222
echo "tar -Jxf /opt/NeteXt73/pakiety/nvidia-settings.tar.xz -C /tmp/"
 
1223
echo "cp -f /tmp/libnvidia-gtk2.so.545.29.06 /usr/lib/"
 
1224
echo "cp -f /tmp/libnvidia-gtk3.so.545.29.06 /usr/lib/"
 
1225
echo "cp -f /tmp/nvidia-settings        /usr/bin/"
 
1226
echo "rm -f /tmp/nvidia-settings /tmp/libnvidia-gtk3.so.545.29.06 /tmp/libnvidia-gtk2.so.545.29.06"
1241
1227
#naprawa nv
1242
1228
echo "cp -fr /lib/x86_64-linux-gnu/nvidia/* /lib/nvidia/"
1243
1229
echo "cp -fr /lib/x86_64-linux-gnu/nvidia/* /usr/lib/nvidia/"