Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipstick
Commits
e9dc9a7d
Commit
e9dc9a7d
authored
10 years ago
by
Daniel Schulte
Browse files
Options
Downloads
Patches
Plain Diff
Updated scripts for Ubuntu 14.04
parent
972c924c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/liprepoctl.sh
+2
-2
2 additions, 2 deletions
scripts/liprepoctl.sh
scripts/mount-stick-repo.sh
+2
-2
2 additions, 2 deletions
scripts/mount-stick-repo.sh
with
4 additions
and
4 deletions
scripts/liprepoctl.sh
+
2
−
2
View file @
e9dc9a7d
...
...
@@ -3,8 +3,8 @@
ACTION
=
"
$1
"
FILENAME
=
"/etc/apt/sources.list.d/lipoffline.list"
ACTIVATED
=
`
test
-e
"
$FILENAME
"
`
DIST_CODENAME
=
"
sauc
y"
DIST_VERSION
=
"1
3.10
"
DIST_CODENAME
=
"
trust
y"
DIST_VERSION
=
"1
4.04
"
function
install_repo
()
...
...
This diff is collapsed.
Click to expand it.
scripts/mount-stick-repo.sh
+
2
−
2
View file @
e9dc9a7d
...
...
@@ -44,11 +44,11 @@ else
echo
"Stick gefunden als
$DEV
"
# ask udisks to mount it always.
udisksctl mount
--block-device
"
$DEV
"
udisksctl mount
--block-device
"
$DEV
"
||
true
# see where it is mounted
DEVFILE
=
${
DEV
#/dev/
}
MPOINT
=
"
$(
dbus-send
--print-reply
=
literal
--system
--dest
=
org.freedesktop.UDisks /org/freedesktop/UDisks
/
devices/
${
DEVFILE
}
org.freedesktop.DBus.Properties.Get string:
'org.freedesktop.UDisks
.Device
'
string:
'
Device
MountP
ath
s'
|
tail
-n
+
2
|
tr
-d
"
\ \]\[
"
|
head
-n
1
)
"
MPOINT
=
"
$(
dbus-send
--print-reply
=
literal
--system
--dest
=
org.freedesktop.UDisks
2
/org/freedesktop/UDisks
2/block_
devices/
${
DEVFILE
}
org.freedesktop.DBus.Properties.Get string:
'org.freedesktop.UDisks
2.Filesystem
'
string:
'MountP
oint
s'
|
tail
-n
+
3
|
tr
-d
"
\ \]\[
"
|
head
-n
1
| xxd
-r
-p
)
"
echo
"Der Stick it als '
$MPOINT
' gemountet"
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment