Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F5
dockscript.sh
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
olasd
Sep 9 2015, 10:33 AM
2015-09-09 10:33:21 (UTC+2)
Size
621 B
Subscribers
None
dockscript.sh
View Options
#!/bin/bash
exec
> >
(
/usr/bin/logger -t dockscript
)
exec
2
>
&
1
export
LC_ALL
=
C
case
"
$1
"
in
add
)
/usr/bin/nmcli radio wifi off
/usr/bin/nmcli radio wwan off
while
!
[
$(
/usr/bin/nmcli -t -f WIRED-PROPERTIES.CARRIER device show eth0
)
=
"WIRED-PROPERTIES.CARRIER:on"
]
;
do
sleep
1
done
/usr/bin/nmcli connection up id IRILL
/usr/bin/nmcli connection up id
"Software Heritage"
;;
remove
)
/usr/bin/nmcli connection down id
"Software Heritage"
/usr/bin/nmcli connection down id IRILL
/usr/bin/nmcli radio wifi on
/usr/bin/nmcli radio wwan on
;;
esac
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5
Attached To
Restricted Maniphest Task
T2456: Source code view should span full browser width
D925: Drop sessionStorage, only use the URL to store state.
Restricted Paste
Event Timeline
Log In to Comment