From 694338293d69452c1a1efb09fef490b5c799de00 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 6 Jun 2011 23:53:49 -0400 Subject: Add dev-template A few files just to give the user a shell when the machine boots. --- dev-template/dj/hello.c | 8 ++++++++ dev-template/dj/hello.cc | 9 +++++++++ dev-template/root/.bash_profile | 7 +++++++ dev-template/sbin/init | 13 +++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 dev-template/dj/hello.c create mode 100644 dev-template/dj/hello.cc create mode 100644 dev-template/root/.bash_profile create mode 100755 dev-template/sbin/init 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 + +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 + +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=' +stage2 \w +$ '; + +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 -- cgit