From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1Dt9m7-0001dn-E1 for garchives@archives.gentoo.org; Thu, 14 Jul 2005 19:53:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6EJrHCw021609; Thu, 14 Jul 2005 19:53:17 GMT Received: from smtp03.gnvlscdb.sys.nuvox.net (smtp.nuvox.net [64.89.70.9]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6EJrGau025880 for ; Thu, 14 Jul 2005 19:53:16 GMT Received: from cgianelloni.nuvox.net (216.215.202.4.nw.nuvox.net [216.215.202.4]) by smtp03.gnvlscdb.sys.nuvox.net (8.12.11/8.12.11) with SMTP id j6EJrlhN006563 for ; Thu, 14 Jul 2005 15:53:47 -0400 Received: by cgianelloni.nuvox.net (sSMTP sendmail emulation); Thu, 14 Jul 2005 15:53:22 -0400 Subject: Re: [gentoo-catalyst] Re: Re: Re: livecd-stage1 pkgconfig From: Chris Gianelloni To: gentoo-catalyst@lists.gentoo.org In-Reply-To: References: <1120657640.4744.25.camel@cgianelloni.nuvox.net> <1120832397.11567.84.camel@cgianelloni.nuvox.net> <1120850317.11567.122.camel@cgianelloni.nuvox.net> <1121177579.11002.13.camel@cgianelloni.nuvox.net> <1121187692.11002.34.camel@cgianelloni.nuvox.net> <1121191505.11002.46.camel@cgianelloni.nuvox.net> <1121198353.11002.71.camel@cgianelloni.nuvox.net> <1121367474.26200.33.camel@cgianelloni.nuvox.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-fBl/LJ0800RML+zofCZx" Organization: Gentoo Linux Date: Thu, 14 Jul 2005 15:53:21 -0400 Message-Id: <1121370802.26200.36.camel@cgianelloni.nuvox.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Archives-Salt: 636c6fe9-1b7e-410d-9df4-267863cf9506 X-Archives-Hash: c1a8572103ef06510bb622940bc035c6 --=-fBl/LJ0800RML+zofCZx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 2005-07-14 at 15:36 -0400, Christophe PEREZ wrote: > Le Thu, 14 Jul 2005 14:57:53 -0400, Chris Gianelloni a =C3=A9crit : >=20 > > I just did it like this: > >=20 > > sed -i 's/##STARTX/su - $first_user -c "source /etc/profile && > > startx"/' /root/.bashrc >=20 > ??? >=20 > - $first_user won't be used > - too much '/' > - & will be replaced >=20 > In the way with "'", it should be : > sed -i 's|##STARTX|su - '"${first_user}"' -c "source /etc/profile \&\& > startx"|' /root/.bashrc >=20 > no ? "s:##STARTX:su - $first_user -c 'source /etc/profile \&\& startx':" works... I just tested it... --=20 Chris Gianelloni Release Engineering - Strategic Lead/QA Manager Games - Developer Gentoo Linux --=-fBl/LJ0800RML+zofCZx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC1sKxkT4lNIS36YERAlUFAJ0a8xKRLKLY3lSqMowxI1irJXnnUACfUt8c FXSBo7zpf9p5xLWO06h4+QA= =JOYP -----END PGP SIGNATURE----- --=-fBl/LJ0800RML+zofCZx-- -- gentoo-catalyst@gentoo.org mailing list