/[sandbox]/r2d2/hardened-livecd/trunk/fsscript.sh
Gentoo

Contents of /r2d2/hardened-livecd/trunk/fsscript.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (show annotations) (download) (as text)
Thu Feb 10 00:05:18 2005 UTC (11 years, 6 months ago) by r2d2
File MIME type: text/x-sh
File size: 996 byte(s)
Initial revision

1 #!/bin/bash
2
3 #setup xdm and editor
4 sed -i -e "s/\#DISPLAYMANAGER=\"xdm\"/DISPLAYMANAGER=\"gdm\"/g" -e "s;/bin/nano;/usr/bin/vim;g" /etc/rc.conf
5
6 #add default user
7 useradd -m -g users -G users,wheel,floppy,audio,cdrom,video,cdrw,games hardened
8 echo "hardened:hardened" | chpasswd
9 echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
10
11 ###fix x-setup path/code
12 ##sed -i -e "s/;echo/echo/g" -e "s/;sleep/sleep/g" /usr/sbin/x-setup
13 ##mv /usr/sbin/x-setup /sbin
14
15 #Get rid of the ugly hack of a setup
16 rm /usr/sbin/x-setup
17 sed -i -r -e "s/\[ -x \/sbin\/x-setup \] && \/sbin\/x-setup//g" /etc/conf.d/local.start
18
19 #make sure xdm launches after mkxf86config
20 sed -i -r -e "s/(depend\(\) \{)/\0\n\tneed mkxf86config/g" /etc/init.d/xdm
21
22 #create x-less runlevel
23 mkdir /etc/runlevels/noX
24 rc-update add autoconfig noX
25 rc-update add gpm noX
26 rc-update add local noX
27 rc-update add modules noX
28 rc-update add pwgen noX
29 rc-update add syslog-ng noX
30 #Just in case user decides to start X
31 rc-update add mkxf86config noX
32

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords author date id revision

  ViewVC Help
Powered by ViewVC 1.1.20