summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:40:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:40:22 +0200
commit5f1c309bc7f9924f2506f88cba345dd8b2e09cd8 (patch)
treec9743d5485a274b1aa9718f306dfe8c836803e35 /etc
parent5acbc5153d58fcad2d40ccc774af1accf41e4c8b (diff)
Automatically start X on saviour and nemesis
Diffstat (limited to 'etc')
-rw-r--r--etc/hosts/profile-nemesis6
l---------etc/hosts/profile-saviour1
-rw-r--r--etc/profile1
3 files changed, 8 insertions, 0 deletions
diff --git a/etc/hosts/profile-nemesis b/etc/hosts/profile-nemesis
new file mode 100644
index 0000000..2b06433
--- /dev/null
+++ b/etc/hosts/profile-nemesis
@@ -0,0 +1,6 @@
+## vim:ft=zsh
+if [[ ! -e /tmp/.afterboot ]] {
+ touch /tmp/.afterboot
+ unsetopt bg_nice
+ startx &! exit
+}
diff --git a/etc/hosts/profile-saviour b/etc/hosts/profile-saviour
new file mode 120000
index 0000000..193e6be
--- /dev/null
+++ b/etc/hosts/profile-saviour
@@ -0,0 +1 @@
+profile-nemesis \ No newline at end of file
diff --git a/etc/profile b/etc/profile
index ed9a40d..6f34cb9 100644
--- a/etc/profile
+++ b/etc/profile
@@ -15,5 +15,6 @@ echo
[[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!"
[[ -r $ZDIR/local-profile ]] && source $ZDIR/local-profile
+[[ -r $ZDIR/hosts/profile-$HOST ]] && source $ZDIR/hosts/profile-$HOST
unfunction pr_info