sabayonlive-tools: fix net-setup
git-svn-id: http://svn.sabayonlinux.org/overlay@2399 d7aec97c-591d-0410-af39-a8856400b30a
This commit is contained in:
@@ -8,7 +8,7 @@ AUX 1.7.3/x-setup-configuration 12298 RMD160 6492da4dbb9ca14bad636266a2bd14590b9
|
||||
AUX 1.7.3/x-setup-init.d 1330 RMD160 09c155ffe3aa9a65760bdef8cece2737ccc9c6c3 SHA1 11982feb8b32cd30ac972767f0c8094220e5c1c6 SHA256 bfbbdafc69b24274791bd412d223f8bc2c443cf942cfd3b989bc23916f9833ad
|
||||
AUX 1.7.3/xorg.conf 3664 RMD160 0c0515d011e65222b99ea3be084c20292d7982e1 SHA1 16c80ceceb435b6bfb6d45ea9879ed6e8edba5b4 SHA256 8d87057f783df8439b6f815b4c28f20694dd718d35f735e8112b7cdde873aaad
|
||||
AUX 1.8.0/bashlogin 133 RMD160 5c2aae2522427c3ff1d9260764b0ed20cd1a0909 SHA1 a57b9911d970d57d43b9d697af136e47137177f6 SHA256 7dbf15b68e436cd014b64779435afd4cfccd012e4889a86f955ef42a89278aad
|
||||
AUX 1.8.0/livecd-functions.sh 17304 RMD160 fdace41288b0c9fc4b49659f4e284fea48c01f18 SHA1 b25cc82873308f97f1d183e3d5ce0d28955734f1 SHA256 ae4413adeb02eb433e0a328961e8f82b9dbb002cb369f5b4e8b38acb37d0442a
|
||||
AUX 1.8.0/livecd-functions.sh 17312 RMD160 c42f75f8f8f6636eeb458b0f8c867973f61c2a9c SHA1 a66c5aa939fbcf67e2e14c7414ae007b2f372b11 SHA256 0f26d6b04f3e35fbe430a1af5f1123e689e9d319a93657ecdcfadbf8fff3117d
|
||||
AUX 1.8.0/net-setup 1529 RMD160 1a0f42dd2ef4b2c94d40bc2b94176c9d2a15d2f7 SHA1 b11d433afba664770e6c99c681f8c99d8c71230e SHA256 41f5fdf35752837e69e958b7082339146c2c8e2e3470add2cd2eab4092d50d9a
|
||||
AUX 1.8.0/opengl-activator 9886 RMD160 757e7689224332cffb96a16dc902d96f88612c16 SHA1 c4a3190f62f3d81546f27b4e81bf8bb73842c1d3 SHA256 61c2c230f4ab9092cbd222f090c288029e3215029b26a81b9bd04397650828c7
|
||||
AUX 1.8.0/sabayonlive 34627 RMD160 9c947ab0098f1ab6a50ce5e2a01b3b8b5742f69f SHA1 ae77d39df86c513af1448bf634131902790876e9 SHA256 6fd2b0083fdfc370b8f09b0d13c0dd89959d57351ca80f1e0070789976d1abab
|
||||
@@ -18,3 +18,4 @@ AUX 1.8.0/x-setup-init.d 1352 RMD160 cdefc9b89fda06a0bf36357ea7cdc3835902b560 SH
|
||||
AUX 1.8.0/xorg.conf 3664 RMD160 0c0515d011e65222b99ea3be084c20292d7982e1 SHA1 16c80ceceb435b6bfb6d45ea9879ed6e8edba5b4 SHA256 8d87057f783df8439b6f815b4c28f20694dd718d35f735e8112b7cdde873aaad
|
||||
EBUILD sabayonlive-tools-1.7.3-r5.ebuild 1203 RMD160 33764b79820724e9dc8db764bdbead3315946975 SHA1 92f5cb4fd71f4f0fafdb532edf4e4013c724b146 SHA256 7ca04a6ce89ad93738bacd5a66b4a6495524daf7590ca1d3f1d83bbbcef39991
|
||||
EBUILD sabayonlive-tools-1.8.0-r4.ebuild 1203 RMD160 33764b79820724e9dc8db764bdbead3315946975 SHA1 92f5cb4fd71f4f0fafdb532edf4e4013c724b146 SHA256 7ca04a6ce89ad93738bacd5a66b4a6495524daf7590ca1d3f1d83bbbcef39991
|
||||
EBUILD sabayonlive-tools-1.8.0-r5.ebuild 1203 RMD160 33764b79820724e9dc8db764bdbead3315946975 SHA1 92f5cb4fd71f4f0fafdb532edf4e4013c724b146 SHA256 7ca04a6ce89ad93738bacd5a66b4a6495524daf7590ca1d3f1d83bbbcef39991
|
||||
|
||||
@@ -377,19 +377,16 @@ get_ifdesc() {
|
||||
show_ifmenu() {
|
||||
local old_ifs="${IFS}"
|
||||
local opts
|
||||
IFS="
|
||||
"
|
||||
IFS=""
|
||||
for ifname in $(/sbin/ifconfig -a | grep "^[^ ]"); do
|
||||
ifname="${ifname%% *}"
|
||||
[[ ${ifname} == "lo" ]] && continue
|
||||
opts="${opts} ${ifname} '$(get_ifdesc ${ifname})'"
|
||||
opts="${opts} '${ifname}' '$(get_ifdesc ${ifname})'"
|
||||
done
|
||||
IFS="${old_ifs}"
|
||||
|
||||
if ! eval dialog --menu "Please select the interface that you wish to configure from the list below:" 0 0 0 $opts 2>iface
|
||||
then
|
||||
exit
|
||||
fi
|
||||
eval dialog --menu \"Please select the interface that you wish to configure from the list below:\" 0 0 0 $opts 2>iface
|
||||
[[ "$?" == "1" ]] && exit
|
||||
|
||||
iface=$(< iface)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
# Copyright 2006 SabayonLinux
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="SabayonLinux Live tools for autoconfiguration of the system"
|
||||
HOMEPAGE="http://www.sabayonlinux.org"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="opengl"
|
||||
|
||||
RDEPEND="dev-util/dialog
|
||||
sys-apps/pciutils
|
||||
sys-apps/gawk
|
||||
app-admin/eselect-opengl
|
||||
!app-misc/livecd-tools
|
||||
x11-misc/desktop-acceleration-helpers
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
cd ${WORKDIR}
|
||||
cp ${FILESDIR}/${PV}/livecd-functions.sh . -p
|
||||
cp ${FILESDIR}/${PV}/net-setup . -p
|
||||
cp ${FILESDIR}/${PV}/x-setup-init.d . -p
|
||||
cp ${FILESDIR}/${PV}/x-setup-configuration . -p
|
||||
cp ${FILESDIR}/${PV}/xorg.conf . -p
|
||||
cp ${FILESDIR}/${PV}/bashlogin . -p
|
||||
cp ${FILESDIR}/${PV}/opengl-activator . -p
|
||||
cp ${FILESDIR}/${PV}/sabayonlive . -p
|
||||
cp ${FILESDIR}/${PV}/vga-cmd-parser . -p
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
cd ${WORKDIR}
|
||||
|
||||
if use opengl; then
|
||||
dosbin x-setup-configuration
|
||||
newinitd x-setup-init.d x-setup
|
||||
fi
|
||||
|
||||
dosbin net-setup
|
||||
into /
|
||||
dosbin livecd-functions.sh
|
||||
dobin bashlogin
|
||||
dobin vga-cmd-parser
|
||||
exeinto /usr/bin
|
||||
doexe opengl-activator
|
||||
|
||||
insinto /etc/X11
|
||||
doins xorg.conf
|
||||
|
||||
newinitd sabayonlive sabayonlive
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user