diff options
author | DJ Delorie <dj@delorie.com> | 2011-06-06 23:53:49 -0400 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2011-06-06 23:53:49 -0400 |
commit | 694338293d69452c1a1efb09fef490b5c799de00 (patch) | |
tree | 4418f058a5a9b430907d6ac0d71aa046d0af058f /dev-template | |
parent | a70abd5936cdae217f378ea28615ee50c4661839 (diff) | |
download | bootstrap-694338293d69452c1a1efb09fef490b5c799de00.tar.gz bootstrap-694338293d69452c1a1efb09fef490b5c799de00.tar.xz bootstrap-694338293d69452c1a1efb09fef490b5c799de00.zip |
Add dev-template
A few files just to give the user a shell when the machine
boots.
Diffstat (limited to 'dev-template')
-rw-r--r-- | dev-template/dj/hello.c | 8 | ||||
-rw-r--r-- | dev-template/dj/hello.cc | 9 | ||||
-rw-r--r-- | dev-template/root/.bash_profile | 7 | ||||
-rwxr-xr-x | dev-template/sbin/init | 13 |
4 files changed, 37 insertions, 0 deletions
diff --git a/dev-template/dj/hello.c b/dev-template/dj/hello.c new file mode 100644 index 0000000..a2a90a5 --- /dev/null +++ b/dev-template/dj/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int +main() +{ + printf("Hello, hard world!\n"); + return 0; +} diff --git a/dev-template/dj/hello.cc b/dev-template/dj/hello.cc new file mode 100644 index 0000000..c3aaa22 --- /dev/null +++ b/dev-template/dj/hello.cc @@ -0,0 +1,9 @@ +#include <iostream> + +using namespace std; + +int main(void) +{ + cout << "hello" << endl; + return 0; +} diff --git a/dev-template/root/.bash_profile b/dev-template/root/.bash_profile new file mode 100644 index 0000000..4b37722 --- /dev/null +++ b/dev-template/root/.bash_profile @@ -0,0 +1,7 @@ +#!/bin/bash + +export PS1=' +[32mstage2 [33m\w[0m +$ '; + +alias ls='ls -CF --color' diff --git a/dev-template/sbin/init b/dev-template/sbin/init new file mode 100755 index 0000000..1815c6d --- /dev/null +++ b/dev-template/sbin/init @@ -0,0 +1,13 @@ +#!/bin/bash + +echo +echo +echo +echo DJ Was Here +echo +echo + +export HOME=/root +cd $HOME + +/bin/bash -i -l |