Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
188e7671
Commit
188e7671
authored
Nov 09, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.64.0
parent
a2e902fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
8 deletions
+32
-8
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+32
-8
No files found.
packed/epm.sh
View file @
188e7671
This source diff could not be displayed because it is too large. You can
view the blob
instead.
packed/serv.sh
View file @
188e7671
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.6
2.13
"
EPMVERSION
=
"3.6
4.0
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -463,6 +463,12 @@ set_sudo()
...
@@ -463,6 +463,12 @@ set_sudo()
# start error section
# start error section
SUDO_TESTED
=
"1"
SUDO_TESTED
=
"1"
if
is_command doas
&&
a
=
''
doas
-C
/etc/doas.conf
>
/dev/null 2>&1
;
then
SUDO
=
"doas"
SUDO_TESTED
=
"0"
return
"
$SUDO_TESTED
"
fi
if
!
is_command
$SUDO_CMD
;
then
if
!
is_command
$SUDO_CMD
;
then
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
SUDO_TESTED
=
"2"
SUDO_TESTED
=
"2"
...
@@ -2140,6 +2146,11 @@ normalize_version3()
...
@@ -2140,6 +2146,11 @@ normalize_version3()
echo
"
$1
"
|
sed
-e
"s|^
\(
[^.][^.]*
\.
[^.][^.]*
\.
[^.][^.]*
\)\.
.*|
\1
|"
echo
"
$1
"
|
sed
-e
"s|^
\(
[^.][^.]*
\.
[^.][^.]*
\.
[^.][^.]*
\)\.
.*|
\1
|"
}
}
is_numeric
()
{
echo
"
$1
"
|
grep
-q
"^[0-9][0-9]*$"
}
fill_distr_info
()
fill_distr_info
()
{
{
...
@@ -2169,11 +2180,22 @@ if distro os-release ; then
...
@@ -2169,11 +2180,22 @@ if distro os-release ; then
#PRETTY_NAME
#PRETTY_NAME
VENDOR_ID
=
"
$ID
"
VENDOR_ID
=
"
$ID
"
case
"
$VENDOR_ID
"
in
case
"
$VENDOR_ID
"
in
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros
)
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros
|rockylinux|almalinux
)
;;
;;
*
)
*
)
# ID_LIKE can be 'rhel centos fedora', use latest word
if
[
-n
"
$ID_LIKE
"
]
;
then
[
-n
"
$ID_LIKE
"
]
&&
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
tail
-n1
)
"
# ID_LIKE can be 'rhel centos fedora', use first word
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
head
-n1
)
"
# use latest word for versions like Fedora has
if
is_numeric
"
$DISTRIB_RELEASE
"
&&
[
"
$DISTRIB_RELEASE
"
-ge
20
]
;
then
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
tail
-n1
)
"
fi
fi
;;
esac
case
"
$VENDOR_ID
"
in
reld|rhel|msvsphere|alteros|rockylinux|almalinux
)
DISTRIB_RELEASE
=
$(
normalize_version1
"
$DISTRIB_RELEASE
"
)
;;
;;
esac
esac
DISTRIB_FULL_RELEASE
=
"
$DISTRIB_RELEASE
"
DISTRIB_FULL_RELEASE
=
"
$DISTRIB_RELEASE
"
...
@@ -2410,8 +2432,8 @@ elif [ "$(uname)" = "Linux" ] && is_command guix ; then
...
@@ -2410,8 +2432,8 @@ elif [ "$(uname)" = "Linux" ] && is_command guix ; then
# fixme: move to up
# fixme: move to up
elif
[
"
$(
uname
)
"
=
"Linux"
]
&&
[
-x
$ROOTDIR
/system/bin/getprop
]
;
then
elif
[
"
$(
uname
)
"
=
"Linux"
]
&&
[
-x
$ROOTDIR
/system/bin/getprop
]
;
then
DISTRIB_ID
=
"Android"
DISTRIB_ID
=
"Android"
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/system.build.version.release\]/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
DISTRIB_RELEASE
=
$(
a
=
''
getprop |
awk
-F
": "
'/system.build.version.release\]/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
$(
a
=
''
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
elif
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
;
then
elif
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
DISTRIB_ID
=
"Cygwin"
...
@@ -2543,7 +2565,7 @@ get_bit_size()
...
@@ -2543,7 +2565,7 @@ get_bit_size()
{
{
local
DIST_BIT
local
DIST_BIT
DIST_BIT
=
"
$(
getconf LONG_BIT 2>/dev/null
)
"
DIST_BIT
=
"
$(
a
=
getconf LONG_BIT 2>/dev/null
)
"
if
[
-n
"
$DIST_BIT
"
]
;
then
if
[
-n
"
$DIST_BIT
"
]
;
then
echo
"
$DIST_BIT
"
echo
"
$DIST_BIT
"
return
return
...
@@ -2592,7 +2614,7 @@ get_memory_size()
...
@@ -2592,7 +2614,7 @@ get_memory_size()
[
-r
/proc/meminfo
]
&&
detected
=
$((
`
cat
/proc/meminfo |
grep
MemTotal |
awk
'{print $2}'
`
/
1024
))
[
-r
/proc/meminfo
]
&&
detected
=
$((
`
cat
/proc/meminfo |
grep
MemTotal |
awk
'{print $2}'
`
/
1024
))
;;
;;
solaris
)
solaris
)
detected
=
$(
prtconf |
grep
Memory |
sed
-e
"s|Memory size:
\(
[0-9][0-9]*
\)
Megabyte.*|
\1
|"
)
#"
detected
=
$(
a
=
''
prtconf |
grep
Memory |
sed
-e
"s|Memory size:
\(
[0-9][0-9]*
\)
Megabyte.*|
\1
|"
)
#"
;;
;;
# *)
# *)
# fatal "Unsupported OS $DIST_OS"
# fatal "Unsupported OS $DIST_OS"
...
@@ -2980,6 +3002,7 @@ is_anyservice()
...
@@ -2980,6 +3002,7 @@ is_anyservice()
}
}
phelp
()
phelp
()
{
{
echo
"
$Descr
echo
"
$Descr
...
@@ -3008,6 +3031,7 @@ progname="${0##*/}"
...
@@ -3008,6 +3031,7 @@ progname="${0##*/}"
Usage
=
"Usage:
$progname
[options] [<service>] [<command>] [params]..."
Usage
=
"Usage:
$progname
[options] [<service>] [<command>] [params]..."
Descr
=
"serv - Service manager"
Descr
=
"serv - Service manager"
set_service_type
set_service_type
verbose
=
verbose
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment