Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew-buildout-re6st
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew-buildout-re6st
Commits
e8700da0
Commit
e8700da0
authored
Sep 10, 2018
by
Lorenzo Martinico
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override shill.sh to trick upstart
parent
4effde93
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
1 deletion
+67
-1
bin/.shill.sh.swp
bin/.shill.sh.swp
+0
-0
bin/grandenet
bin/grandenet
+2
-1
bin/shill.sh
bin/shill.sh
+65
-0
No files found.
bin/.shill.sh.swp
0 → 100644
View file @
e8700da0
File added
bin/grandenet
View file @
e8700da0
...
@@ -197,7 +197,8 @@ else
...
@@ -197,7 +197,8 @@ else
if
[[
$(
status shill |
grep
running
)
]]
;
then
if
[[
$(
status shill |
grep
running
)
]]
;
then
stop shill
stop shill
fi
fi
"
${
BASH_SOURCE
%/*
}
"
/shill_wrapper start shill
BLACKLISTED_DEVICES
=
"
${
blacklist_option
}
"
mount
--bind
"
${
BASH_SOURCE
%/*
}
"
/shill.sh /usr/share/cros/init/shill.sh
start shill
BLACKLISTED_DEVICES
=
"
${
blacklist_option
}
"
# wait a bit for the interfaces to be back
# wait a bit for the interfaces to be back
for
i
in
{
0..4
}
;
do
for
i
in
{
0..4
}
;
do
echo
-n
"."
;
sleep
1
echo
-n
"."
;
sleep
1
...
...
bin/shill.sh
0 → 100644
View file @
e8700da0
#
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
DAEMONBIN
=
"shill"
ARGS
=
"--log-level=
${
SHILL_LOG_LEVEL
}
--log-scopes=
${
SHILL_LOG_SCOPES
}
"
if
[
-n
"
${
SHILL_LOG_VMODULES
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--vmodule=
${
SHILL_LOG_VMODULES
}
"
fi
if
[
-n
"
${
BLACKLISTED_DEVICES
}
"
]
&&
[
-n
"
${
SHILL_TEST_DEVICES
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--device-black-list=
${
BLACKLISTED_DEVICES
}
,
${
SHILL_TEST_DEVICES
}
"
elif
[
-n
"
${
BLACKLISTED_DEVICES
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--device-black-list=
${
BLACKLISTED_DEVICES
}
"
elif
[
-n
"
${
SHILL_TEST_DEVICES
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--device-black-list=
${
SHILL_TEST_DEVICES
}
"
fi
if
[
-n
"
${
SHILL_PASSIVE_MODE
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--passive-mode"
fi
if
[
-n
"
${
SHILL_PREPEND_DNS_SERVERS
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--prepend-dns-servers=
${
SHILL_PREPEND_DNS_SERVERS
}
"
fi
if
[
-n
"
${
SHILL_ACCEPT_HOSTNAME_FROM
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--accept-hostname-from=
${
SHILL_ACCEPT_HOSTNAME_FROM
}
"
fi
if
[
-n
"
${
SHILL_MINIMUM_MTU
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--minimum-mtu=
${
SHILL_MINIMUM_MTU
}
"
fi
if
[
-n
"
${
DHCPV6_ENABLED_DEVICES
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--dhcpv6-enabled-devices=
${
DHCPV6_ENABLED_DEVICES
}
"
fi
if
[
-n
"
${
ARC_DEVICE
}
"
]
;
then
ARGS
=
"
${
ARGS
}
--arc-device=
${
ARC_DEVICE
}
"
fi
ARGS
=
"
${
ARGS
}
${
SHILL_TEST_ARGS
}
"
# If OOBE has not completed (i.e. EULA not agreed to), do not run
# portal checks
if
[
!
-f
/home/chronos/.oobe_completed
]
;
then
ARGS
=
"
${
ARGS
}
--portal-list="
fi
exec
shill_wrapper
${
DAEMONBIN
}
${
ARGS
}
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