Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
63870f26
Commit
63870f26
authored
Dec 09, 2016
by
Konstantin Artyushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar os for korinf script
Signed-off-by:
Konstantin Artyushkin
<
akv@altlinux.org
>
parent
03375523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tar_os_to_korinf.sh
korinf/tar_os_to_korinf.sh
+18
-0
No files found.
korinf/tar_os_to_korinf.sh
0 → 100644
View file @
63870f26
#!/bin/sh
# TODO:
# - Try to implement to set an OS name manually, without eepm pack. Maybe a "-m" arg?
# check for distr_info
which distr_info
||
{
echo
"Has no distr_info command. Please install an eepm package"
&&
exit
1
;
}
# get a distributive name and remove all slashes from it
DIST
=
$(
distr_info |
sed
's/\///'
)
# check needed dirs
[
!
-d
/var/ftp/tmp
]
&&
echo
"Please: mount vbox:/var/ftp/tmp /var/ftp/tmp "
[
!
-d
/mnt/systemroot
]
&&
mkdir
-p
/mnt/systemroot
[
!
-d
/var/ftp/tmp/KorinfOS/
]
&&
{
echo
"There is no /var/ftp/tmp/KorinfOS/ directory. Please check your rights and try to create it."
&&
exit
1
;
}
# main
mount
--bind
/ /mnt/systemroot
tar
cfpvz /var/ftp/tmp/KorinfOS/
"
$DIST
"
.tar.gz /mnt/systemroot
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