[PATCH 07/12] renamed: newtarget.sh -> polystrap-nb
Mostly to get rid of the .sh extension.
The 'nb' is short for New Board
(
np: No Problem ( way too optimistich )
nt: Neanderthaler Technology, No Thanks
)
---
newtarget.sh | 50 --------------------------------------------------
polystrap-nb | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 50 deletions(-)
delete mode 100755 newtarget.sh
create mode 100755 polystrap-nb
diff --git a/newtarget.sh b/newtarget.sh
deleted file mode 100755
index c2cc6c7..0000000
--- a/newtarget.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh -ex
-
-if [ "$#" -ne 1 ]; then
- echo "you have to specify the new target name"
- exit
-fi
-
-BOARD="$1"
-
-if [ -e "$BOARD" ]; then
- echo "target already exists"
- exit
-fi
-
-mkdir -p $BOARD/
-mkdir -p $BOARD/packages/
-mkdir -p $BOARD/root/etc/network/
-mkdir -p $BOARD/hooks/
-
-cp default/config $BOARD
-cp default/multistrap.conf $BOARD
-cp default/debconfseed.txt $BOARD
-
-for f in packages/base \
- root/usr/sbin/policy-rc.d \
- root/usr/bin/ldd \
- root/etc/apt/apt.conf.d/99no-install-recommends \
- root/etc/apt/apt.conf.d/99no-pdiffs \
- root/etc/ld.so.conf \
- root/etc/ssh/ssh_host_ecdsa_key \
- root/etc/ssh/ssh_host_rsa_key \
- root/etc/ssh/ssh_host_dsa_key \
- root/sbin/ldconfig \
- hooks/create_user \
- hooks/serial_tty \
- hooks/firstboot \
- hooks/empty_password; do
- mkdir -p `dirname $BOARD/$f`
- cp -p default/$f $BOARD/$f
-done
-
-cat << __END__ > $BOARD/root/etc/hosts
-127.0.0.1 localhost
-127.0.0.1 $BOARD
-__END__
-
-echo $BOARD > $BOARD/root/etc/hostname
-
-cp default/root/etc/fstab $BOARD/root/etc/
-cp default/root/etc/network/interfaces $BOARD/root/etc/network/
diff --git a/polystrap-nb b/polystrap-nb
new file mode 100755
index 0000000..c2cc6c7
--- /dev/null
+++ b/polystrap-nb
@@ -0,0 +1,50 @@
+#!/bin/sh -ex
+
+if [ "$#" -ne 1 ]; then
+ echo "you have to specify the new target name"
+ exit
+fi
+
+BOARD="$1"
+
+if [ -e "$BOARD" ]; then
+ echo "target already exists"
+ exit
+fi
+
+mkdir -p $BOARD/
+mkdir -p $BOARD/packages/
+mkdir -p $BOARD/root/etc/network/
+mkdir -p $BOARD/hooks/
+
+cp default/config $BOARD
+cp default/multistrap.conf $BOARD
+cp default/debconfseed.txt $BOARD
+
+for f in packages/base \
+ root/usr/sbin/policy-rc.d \
+ root/usr/bin/ldd \
+ root/etc/apt/apt.conf.d/99no-install-recommends \
+ root/etc/apt/apt.conf.d/99no-pdiffs \
+ root/etc/ld.so.conf \
+ root/etc/ssh/ssh_host_ecdsa_key \
+ root/etc/ssh/ssh_host_rsa_key \
+ root/etc/ssh/ssh_host_dsa_key \
+ root/sbin/ldconfig \
+ hooks/create_user \
+ hooks/serial_tty \
+ hooks/firstboot \
+ hooks/empty_password; do
+ mkdir -p `dirname $BOARD/$f`
+ cp -p default/$f $BOARD/$f
+done
+
+cat << __END__ > $BOARD/root/etc/hosts
+127.0.0.1 localhost
+127.0.0.1 $BOARD
+__END__
+
+echo $BOARD > $BOARD/root/etc/hostname
+
+cp default/root/etc/fstab $BOARD/root/etc/
+cp default/root/etc/network/interfaces $BOARD/root/etc/network/
--
1.7.2.3
Reply to: