-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is all I needed to do now that the flashrd.site patches are in flashrd's github repo. This was as simple as `echo role-flashrd >> common/siteXX/roles` and it just worked. (I am sure that some things also needed to be adjusted for the readonly filesystems but it boots up)
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
active_interface() { | ||
ifconfig | awk ' | ||
BEGIN { A = "" }; | ||
/^[^[:space:]]/ { if (A == "") { INT = $1 } }; | ||
/status: active/ { A=1 }; | ||
END { if (A != "") { sub(":", "", INT); print INT } } | ||
' | ||
} | ||
|
||
int=`active_interface` | ||
|
||
if [ -n "$int" ]; then | ||
dhclient $int | ||
else | ||
echo Unable to find an active interface, no network enabled | ||
fi | ||
|
||
. /install.site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# user: andrew | ||
# machine: trillian.afresh1.com | ||
# tree: /tmp/sxxu.rEcuDJGDe/role-flashrd | ||
# date: Sun Apr 21 19:16:19 2013 | ||
|
||
# . | ||
/set type=file uid=0 gid=0 mode=0644 | ||
. type=dir mode=0755 | ||
flashrd.site | ||
flashrd.site~ | ||
|
||
# ./etc | ||
etc type=dir mode=0755 | ||
# ./etc | ||
.. | ||
|
||
|
||
# ./var | ||
/set type=file uid=0 gid=0 mode=0755 | ||
var type=dir | ||
|
||
# ./var/siteXX | ||
/set type=file uid=0 gid=0 mode=0644 | ||
siteXX type=dir mode=0755 | ||
roles | ||
|
||
# ./var/siteXX/role-flashrd | ||
role-flashrd type=dir mode=0755 | ||
mtree | ||
# ./var/siteXX/role-flashrd | ||
.. | ||
|
||
# ./var/siteXX | ||
.. | ||
|
||
# ./var | ||
.. | ||
|
||
.. | ||
|