File tree 5 files changed +46
-6
lines changed
5 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,19 @@ EOF
105
105
fi
106
106
else
107
107
os_ver=$( sed ' s/\..*//' /etc/debian_version | tr -dc ' A-Za-z0-9' )
108
- if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " jessiesid " ] \
108
+ if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " stretchsid " ] \
109
109
|| [ " $os_ver " = " bustersid" ]; then
110
110
cat 1>&2 << EOF
111
111
Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
112
112
This version of Ubuntu/Debian is too old and not supported.
113
+ EOF
114
+ exit 1
115
+ fi
116
+ if [ " $os_ver " = " trixiesid" ] && [ -f /etc/os-release ] \
117
+ && [ " $( . /etc/os-release && printf ' %s' " $VERSION_ID " ) " = " 24.10" ]; then
118
+ cat 1>&2 << EOF
119
+ Error: This script does not support Ubuntu 24.10.
120
+ You may use e.g. Ubuntu 24.04 LTS instead.
113
121
EOF
114
122
exit 1
115
123
fi
@@ -169,7 +177,7 @@ confirm_or_abort() {
169
177
show_header () {
170
178
cat << 'EOF '
171
179
172
- IKEv2 Script Copyright (c) 2020-2024 Lin Song 28 Jul 2024
180
+ IKEv2 Script Copyright (c) 2020-2024 Lin Song 27 Dec 2024
173
181
174
182
EOF
175
183
}
Original file line number Diff line number Diff line change 96
96
fi
97
97
else
98
98
os_ver=$( sed ' s/\..*//' /etc/debian_version | tr -dc ' A-Za-z0-9' )
99
- if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " jessiesid " ] \
99
+ if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " stretchsid " ] \
100
100
|| [ " $os_ver " = " bustersid" ]; then
101
101
cat 1>&2 << EOF
102
102
Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
103
103
This version of Ubuntu/Debian is too old and not supported.
104
+ EOF
105
+ exit 1
106
+ fi
107
+ if [ " $os_ver " = " trixiesid" ] && [ -f /etc/os-release ] \
108
+ && [ " $( . /etc/os-release && printf ' %s' " $VERSION_ID " ) " = " 24.10" ]; then
109
+ cat 1>&2 << EOF
110
+ Error: This script does not support Ubuntu 24.10.
111
+ You may use e.g. Ubuntu 24.04 LTS instead.
104
112
EOF
105
113
exit 1
106
114
fi
Original file line number Diff line number Diff line change @@ -57,11 +57,19 @@ check_os() {
57
57
;;
58
58
esac
59
59
os_ver=$( sed ' s/\..*//' /etc/debian_version | tr -dc ' A-Za-z0-9' )
60
- if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " jessiesid " ] \
60
+ if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " stretchsid " ] \
61
61
|| [ " $os_ver " = " bustersid" ]; then
62
62
cat 1>&2 << EOF
63
63
Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
64
64
This version of Ubuntu/Debian is too old and not supported.
65
+ EOF
66
+ exit 1
67
+ fi
68
+ if [ " $os_ver " = " trixiesid" ] && [ -f /etc/os-release ] \
69
+ && [ " $( . /etc/os-release && printf ' %s' " $VERSION_ID " ) " = " 24.10" ]; then
70
+ cat 1>&2 << EOF
71
+ Error: This script does not support Ubuntu 24.10.
72
+ You may use e.g. Ubuntu 24.04 LTS instead.
65
73
EOF
66
74
exit 1
67
75
fi
Original file line number Diff line number Diff line change @@ -128,11 +128,19 @@ EOF
128
128
fi
129
129
else
130
130
os_ver=$( sed ' s/\..*//' /etc/debian_version | tr -dc ' A-Za-z0-9' )
131
- if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " jessiesid " ] \
131
+ if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " stretchsid " ] \
132
132
|| [ " $os_ver " = " bustersid" ]; then
133
133
cat 1>&2 << EOF
134
134
Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
135
135
This version of Ubuntu/Debian is too old and not supported.
136
+ EOF
137
+ exit 1
138
+ fi
139
+ if [ " $os_ver " = " trixiesid" ] && [ -f /etc/os-release ] \
140
+ && [ " $( . /etc/os-release && printf ' %s' " $VERSION_ID " ) " = " 24.10" ]; then
141
+ cat 1>&2 << EOF
142
+ Error: This script does not support Ubuntu 24.10.
143
+ You may use e.g. Ubuntu 24.04 LTS instead.
136
144
EOF
137
145
exit 1
138
146
fi
Original file line number Diff line number Diff line change @@ -88,11 +88,19 @@ check_os() {
88
88
;;
89
89
esac
90
90
os_ver=$( sed ' s/\..*//' /etc/debian_version | tr -dc ' A-Za-z0-9' )
91
- if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " jessiesid " ] \
91
+ if [ " $os_ver " = 8 ] || [ " $os_ver " = 9 ] || [ " $os_ver " = " stretchsid " ] \
92
92
|| [ " $os_ver " = " bustersid" ]; then
93
93
cat 1>&2 << EOF
94
94
Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
95
95
This version of Ubuntu/Debian is too old and not supported.
96
+ EOF
97
+ exit 1
98
+ fi
99
+ if [ " $os_ver " = " trixiesid" ] && [ -f /etc/os-release ] \
100
+ && [ " $( . /etc/os-release && printf ' %s' " $VERSION_ID " ) " = " 24.10" ]; then
101
+ cat 1>&2 << EOF
102
+ Error: This script does not support Ubuntu 24.10.
103
+ You may use e.g. Ubuntu 24.04 LTS instead.
96
104
EOF
97
105
exit 1
98
106
fi
You can’t perform that action at this time.
0 commit comments