[Armadeus-commitlog] armadeus branch, master, updated. release-3.3-220-g74a8707
Brought to you by:
sszy
|
From: jscheer <js...@us...> - 2011-01-07 10:54:14
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 74a8707b04c18fd90dd7b23a9040d2732ffc6f0a (commit)
from 2ef8b0d7acd4a4d90bc50867b8476a2fe1c613f8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 74a8707b04c18fd90dd7b23a9040d2732ffc6f0a
Author: Jeremie Scheer <jer...@ar...>
Date: Fri Jan 7 11:53:48 2011 +0100
[ROOTFS] Add guest user with password to PPS board skeleton to allow SSH connections on it.
[ROOTFS] Configure sshd configuration file to forbid SSH connections to root user.
[BUILDROOT] Add package PPS utilities to separate PPS' neccesary tools from PPS' test scripts.
[ROOTFS] Split up PPS utilities and PPS test scripts in PPS skeleton.
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/apf27_defconfig | 2 +-
buildroot/configs/apf27_webradio_defconfig | 1 +
buildroot/configs/apf51_defconfig | 2 +-
buildroot/configs/apf9328_defconfig | 2 +-
buildroot/configs/pps_defconfig | 1 +
buildroot/package/armadeus/pps/Config.in | 12 ++
buildroot/package/armadeus/pps/pps.mk | 51 ++++++---
.../target/device/armadeus/apf27/apf27_defconfig | 2 +-
.../device/armadeus/apf9328/apf9328_defconfig | 2 +-
buildroot/target/device/armadeus/pps/pps_defconfig | 3 +-
.../etc => target/pps/configs}/passwd | 1 +
.../etc => target/pps/configs}/shadow | 1 +
target/pps/configs/sshd_config | 125 ++++++++++++++++++++
.../test_wifi.sh => init/S90guestcreation} | 28 +++--
target/pps/{ => scripts}/configs/ipsec-tools.conf | 0
target/pps/{ => scripts}/configs/profile | 0
.../configs/wpa_supplicant/networkConfig | 0
target/pps/{ => scripts}/www/index.html | 0
18 files changed, 198 insertions(+), 35 deletions(-)
copy {buildroot/target/device/armadeus/rootfs/target_skeleton/etc => target/pps/configs}/passwd (91%)
copy {buildroot/target/device/armadeus/rootfs/target_skeleton/etc => target/pps/configs}/shadow (84%)
create mode 100644 target/pps/configs/sshd_config
copy target/pps/{scripts/test_wifi.sh => init/S90guestcreation} (67%)
mode change 100644 => 100755
rename target/pps/{ => scripts}/configs/ipsec-tools.conf (100%)
rename target/pps/{ => scripts}/configs/profile (100%)
rename target/pps/{ => scripts}/configs/wpa_supplicant/networkConfig (100%)
rename target/pps/{ => scripts}/www/index.html (100%)
diff --git a/buildroot/configs/apf27_defconfig b/buildroot/configs/apf27_defconfig
index 55c6487..bfbf9e8 100644
--- a/buildroot/configs/apf27_defconfig
+++ b/buildroot/configs/apf27_defconfig
@@ -246,7 +246,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
-# BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS is not set
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
#
diff --git a/buildroot/configs/apf27_webradio_defconfig b/buildroot/configs/apf27_webradio_defconfig
index 1cf4caf..648d8e9 100644
--- a/buildroot/configs/apf27_webradio_defconfig
+++ b/buildroot/configs/apf27_webradio_defconfig
@@ -247,6 +247,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
#
diff --git a/buildroot/configs/apf51_defconfig b/buildroot/configs/apf51_defconfig
index 13f9a17..4d3fea5 100644
--- a/buildroot/configs/apf51_defconfig
+++ b/buildroot/configs/apf51_defconfig
@@ -246,7 +246,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
-# BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS is not set
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
#
diff --git a/buildroot/configs/apf9328_defconfig b/buildroot/configs/apf9328_defconfig
index 899f806..3a92543 100644
--- a/buildroot/configs/apf9328_defconfig
+++ b/buildroot/configs/apf9328_defconfig
@@ -243,7 +243,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
-# BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS is not set
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
#
diff --git a/buildroot/configs/pps_defconfig b/buildroot/configs/pps_defconfig
index 4c102cb..9b8861a 100644
--- a/buildroot/configs/pps_defconfig
+++ b/buildroot/configs/pps_defconfig
@@ -246,6 +246,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
+BR2_PACKAGE_ARMADEUS_PPS_UTILITIES=y
BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS=y
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
diff --git a/buildroot/package/armadeus/pps/Config.in b/buildroot/package/armadeus/pps/Config.in
index e035279..bd38451 100644
--- a/buildroot/package/armadeus/pps/Config.in
+++ b/buildroot/package/armadeus/pps/Config.in
@@ -1,6 +1,18 @@
+config BR2_PACKAGE_ARMADEUS_PPS_UTILITIES
+ bool "PPS Utilities"
+ default n
+ help
+ Install PPS Utilities & Initialization files to make PPS' fonctionalities work:
+ - GPIOs initialization file
+ - Guest user creation to connect to PPS via SSH
+
+if BR2_PACKAGE_ARMADEUS_PPS_UTILITIES
+
config BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS
bool "PPS Test scripts"
default n
help
Install PPS Test scripts to test Ethernet, WiFi & USB Gadget on
PPS board. Test scripts will be installed in /usr/local/pps/scripts.
+
+endif #BR2_PACKAGE_ARMADEUS_PPS_UTILITIES
diff --git a/buildroot/package/armadeus/pps/pps.mk b/buildroot/package/armadeus/pps/pps.mk
index 2642e8e..8febace 100644
--- a/buildroot/package/armadeus/pps/pps.mk
+++ b/buildroot/package/armadeus/pps/pps.mk
@@ -1,43 +1,60 @@
#############################################################
#
-# PPS Test scripts
+# PPS Utilities & Test scripts
#
#############################################################
-ARMADEUS-PPS_TESTSCRIPTS_SOURCE:=$(TOPDIR)/../target/pps/scripts
-ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR:=$(TARGET_DIR)/usr/local/pps/scripts
-ARMADEUS-PPS_WWW_DIR:=$(TOPDIR)/../target/pps/www
-ARMADEUS-PPS_WWW_TARGET_DIR:=$(TARGET_DIR)/var
ARMADEUS-PPS_CONFIGS_DIR:=$(TOPDIR)/../target/pps/configs
ARMADEUS-PPS_CONFIGS_TARGET_DIR:=$(TARGET_DIR)/etc/
ARMADEUS-PPS_INITS_DIR:=$(TOPDIR)/../target/pps/init
ARMADEUS-PPS_INITS_TARGET_DIR:=$(ARMADEUS-PPS_CONFIGS_TARGET_DIR)/init.d
+ARMADEUS-PPS_HOME_DIR:=$(TOPDIR)/../target/pps/home
+ARMADEUS-PPS_HOME_TARGET_DIR:=$(TARGET_DIR)/home
-$(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)/init_boa.sh:
- $(ARMADEUS-PPS_TESTSCRIPTS_SOURCE)/install.sh $(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)
+ARMADEUS-PPS_TESTSCRIPTS_SOURCE:=$(TOPDIR)/../target/pps/scripts
+ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR:=$(TARGET_DIR)/usr/local/pps/scripts
+ARMADEUS-PPS_TESTSCRIPTS_WWW_DIR:=$(ARMADEUS-PPS_TESTSCRIPTS_SOURCE)/www
+ARMADEUS-PPS_TESTSCRIPTS_WWW_TARGET_DIR:=$(TARGET_DIR)/var
+ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_DIR:=$(ARMADEUS-PPS_TESTSCRIPTS_SOURCE)/configs
+ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_TARGET_DIR:=$(ARMADEUS-PPS_CONFIGS_TARGET_DIR)
+
+$(ARMADEUS-PPS_INITS_TARGET_DIR)/S80gpios:
+ cp -Rf $(ARMADEUS-PPS_INITS_DIR)/* $(ARMADEUS-PPS_INITS_TARGET_DIR)
-$(ARMADEUS-PPS_WWW_TARGET_DIR)/www/index.html:
- cp -Rf $(ARMADEUS-PPS_WWW_DIR) $(ARMADEUS-PPS_WWW_TARGET_DIR)
+pps-home:
+ cp -Rf $(ARMADEUS-PPS_HOME_DIR)/* $(ARMADEUS-PPS_HOME_TARGET_DIR)
-$(ARMADEUS-PPS_CONFIGS_TARGET_DIR)/wpa_supplicant/networkConfig:
+pps-configs:
mkdir -p $(ARMADEUS-PPS_CONFIGS_TARGET_DIR)
cp -Rf $(ARMADEUS-PPS_CONFIGS_DIR)/* $(ARMADEUS-PPS_CONFIGS_TARGET_DIR)
-$(ARMADEUS-PPS_INITS_TARGET_DIR)/S80gpios:
- cp -Rf $(ARMADEUS-PPS_INITS_DIR)/* $(ARMADEUS-PPS_INITS_TARGET_DIR)
+$(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)/init_boa.sh:
+ifeq ($(BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS),y)
+ $(ARMADEUS-PPS_TESTSCRIPTS_SOURCE)/install.sh $(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)
+endif
+
+$(ARMADEUS-PPS_TESTSCRIPTS_WWW_TARGET_DIR)/www/index.html:
+ifeq ($(BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS),y)
+ cp -Rf $(ARMADEUS-PPS_TESTSCRIPTS_WWW_DIR) $(ARMADEUS-PPS_TESTSCRIPTS_WWW_TARGET_DIR)
+endif
+
+$(ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_TARGET_DIR)/wpa_supplicant/networkConfig:
+ifeq ($(BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS),y)
+ cp -Rf $(ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_DIR)/* $(ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_TARGET_DIR)
+endif
-pps-testscripts: $(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)/init_boa.sh $(ARMADEUS-PPS_WWW_TARGET_DIR)/www/index.html $(ARMADEUS-PPS_CONFIGS_TARGET_DIR)/wpa_supplicant/networkConfig $(ARMADEUS-PPS_INITS_TARGET_DIR)/S80gpios
+pps-utils: $(ARMADEUS-PPS_INITS_TARGET_DIR)/S80gpios pps-home pps-configs $(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)/init_boa.sh $(ARMADEUS-PPS_TESTSCRIPTS_WWW_TARGET_DIR)/www/index.html $(ARMADEUS-PPS_TESTSCRIPTS_CONFIGS_TARGET_DIR)/wpa_supplicant/networkConfig
-armadeus-pps-testscripts-clean:
+armadeus-pps-utils-clean:
rm -rf $(ARMADEUS-PPS_TESTSCRIPTS_TARGET_DIR)
rm -rf $(ARMADEUS-PPS_WWW_TARGET_DIR)/www
- rm -rf $(ARMADEUS-PPS_CONFIGS_TARGET_DIR)
+ rm -rf $(ARMADEUS-PPS_CONFIGS_TARGET_DIR)/wpa_supplicant
#############################################################
#
# Toplevel Makefile options
#
#############################################################
-ifeq ($(strip $(BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS)),y)
-TARGETS+=pps-testscripts
+ifeq ($(strip $(BR2_PACKAGE_ARMADEUS_PPS_UTILITIES)),y)
+TARGETS+=pps-utils
endif
diff --git a/buildroot/target/device/armadeus/apf27/apf27_defconfig b/buildroot/target/device/armadeus/apf27/apf27_defconfig
index 0a9bfa4..1b77d08 100644
--- a/buildroot/target/device/armadeus/apf27/apf27_defconfig
+++ b/buildroot/target/device/armadeus/apf27/apf27_defconfig
@@ -379,7 +379,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
-# BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS is not set
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
# BR2_DATABASE_SUPPORT is not set
BR2_TEXTEDIT_SUPPORT=y
diff --git a/buildroot/target/device/armadeus/apf9328/apf9328_defconfig b/buildroot/target/device/armadeus/apf9328/apf9328_defconfig
index 86d76d2..1c9927e 100644
--- a/buildroot/target/device/armadeus/apf9328/apf9328_defconfig
+++ b/buildroot/target/device/armadeus/apf9328/apf9328_defconfig
@@ -375,7 +375,7 @@ BR2_PACKAGE_PKGCONFIG=y
# BR2_PACKAGE_IMXREGS is not set
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
-# BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS is not set
+# BR2_PACKAGE_ARMADEUS_PPS_UTILITIES is not set
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
# BR2_DATABASE_SUPPORT is not set
BR2_TEXTEDIT_SUPPORT=y
diff --git a/buildroot/target/device/armadeus/pps/pps_defconfig b/buildroot/target/device/armadeus/pps/pps_defconfig
index 586df38..159d2c8 100644
--- a/buildroot/target/device/armadeus/pps/pps_defconfig
+++ b/buildroot/target/device/armadeus/pps/pps_defconfig
@@ -1,6 +1,6 @@
#
# Automatically generated make config: don't edit
-# Wed Dec 8 16:35:18 2010
+# Tue Jan 4 15:50:13 2011
#
BR2_HAVE_DOT_CONFIG=y
BR2_VERSION="0.10.0-svn"
@@ -380,6 +380,7 @@ BR2_PACKAGE_FPGAREGS=y
BR2_PACKAGE_IMXREGS=y
# BR2_PACKAGE_IMXSSI is not set
BR2_PACKAGE_MAX5821CTRL=y
+BR2_PACKAGE_ARMADEUS_PPS_UTILITIES=y
BR2_PACKAGE_ARMADEUS_PPS_TEST_SCRIPTS=y
# BR2_PACKAGE_ARMADEUS_TESTSUITE is not set
# BR2_DATABASE_SUPPORT is not set
diff --git a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/passwd b/target/pps/configs/passwd
similarity index 91%
copy from buildroot/target/device/armadeus/rootfs/target_skeleton/etc/passwd
copy to target/pps/configs/passwd
index 377d4df..64b5f63 100644
--- a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/passwd
+++ b/target/pps/configs/passwd
@@ -13,3 +13,4 @@ dbus:x:81:81:dbus:/var/run/dbus:/bin/sh
nobody:x:99:99:nobody:/home:/bin/sh
sshd:x:103:99:Operator:/var:/bin/sh
default:x:1000:1000:Default non-root user:/home/default:/bin/sh
+guest:x:1001:1001:Linux User,,,:/home/guest:/bin/sh
diff --git a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/shadow b/target/pps/configs/shadow
similarity index 84%
copy from buildroot/target/device/armadeus/rootfs/target_skeleton/etc/shadow
copy to target/pps/configs/shadow
index 4941a1a..a8a4fa3 100644
--- a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/shadow
+++ b/target/pps/configs/shadow
@@ -10,3 +10,4 @@ uucp:*:10933:0:99999:7:::
operator:*:10933:0:99999:7:::
nobody:*:10933:0:99999:7:::
default::10933:0:99999:7:::
+guest:$1$7qAtEAIr$yTnpk6Tm9xyNL5NUq4bE3/:10933:0:99999:7:::
diff --git a/target/pps/configs/sshd_config b/target/pps/configs/sshd_config
new file mode 100644
index 0000000..0495201
--- /dev/null
+++ b/target/pps/configs/sshd_config
@@ -0,0 +1,125 @@
+# $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $
+
+# This is the sshd server system-wide configuration file. See
+# sshd_config(5) for more information.
+
+# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
+
+# The strategy used for options in the default sshd_config shipped with
+# OpenSSH is to specify options with their default value where
+# possible, but leave them commented. Uncommented options change a
+# default value.
+
+#Port 22
+#AddressFamily any
+#ListenAddress 0.0.0.0
+#ListenAddress ::
+
+# Disable legacy (protocol version 1) support in the server for new
+# installations. In future the default will change to require explicit
+# activation of protocol 1
+Protocol 2
+
+# HostKey for protocol version 1
+#HostKey /etc/ssh_host_key
+# HostKeys for protocol version 2
+#HostKey /etc/ssh_host_rsa_key
+#HostKey /etc/ssh_host_dsa_key
+
+# Lifetime and size of ephemeral version 1 server key
+#KeyRegenerationInterval 1h
+#ServerKeyBits 1024
+
+# Logging
+# obsoletes QuietMode and FascistLogging
+#SyslogFacility AUTH
+#LogLevel INFO
+
+# Authentication:
+
+#LoginGraceTime 2m
+PermitRootLogin no
+#StrictModes yes
+#MaxAuthTries 6
+#MaxSessions 10
+
+#RSAAuthentication yes
+#PubkeyAuthentication yes
+#AuthorizedKeysFile .ssh/authorized_keys
+
+# For this to work you will also need host keys in /etc/ssh_known_hosts
+#RhostsRSAAuthentication no
+# similar for protocol version 2
+#HostbasedAuthentication no
+# Change to yes if you don't trust ~/.ssh/known_hosts for
+# RhostsRSAAuthentication and HostbasedAuthentication
+#IgnoreUserKnownHosts no
+# Don't read the user's ~/.rhosts and ~/.shosts files
+#IgnoreRhosts yes
+
+# To disable tunneled clear text passwords, change to no here!
+#PasswordAuthentication yes
+#PermitEmptyPasswords no
+
+# Change to no to disable s/key passwords
+#ChallengeResponseAuthentication yes
+
+# Kerberos options
+#KerberosAuthentication no
+#KerberosOrLocalPasswd yes
+#KerberosTicketCleanup yes
+#KerberosGetAFSToken no
+
+# GSSAPI options
+#GSSAPIAuthentication no
+#GSSAPICleanupCredentials yes
+
+# Set this to 'yes' to enable PAM authentication, account processing,
+# and session processing. If this is enabled, PAM authentication will
+# be allowed through the ChallengeResponseAuthentication and
+# PasswordAuthentication. Depending on your PAM configuration,
+# PAM authentication via ChallengeResponseAuthentication may bypass
+# the setting of "PermitRootLogin without-password".
+# If you just want the PAM account and session checks to run without
+# PAM authentication, then enable this but set PasswordAuthentication
+# and ChallengeResponseAuthentication to 'no'.
+#UsePAM no
+
+#AllowAgentForwarding yes
+#AllowTcpForwarding yes
+#GatewayPorts no
+#X11Forwarding no
+X11Forwarding yes
+#X11DisplayOffset 10
+#X11UseLocalhost yes
+#PrintMotd yes
+PrintMotd no
+#PrintLastLog yes
+#TCPKeepAlive yes
+#UseLogin no
+#UsePrivilegeSeparation yes
+#PermitUserEnvironment no
+#Compression delayed
+#ClientAliveInterval 0
+#ClientAliveCountMax 3
+#UseDNS yes
+#PidFile /var/run/sshd.pid
+#MaxStartups 10
+#PermitTunnel no
+#ChrootDirectory none
+
+# no default banner path
+#Banner none
+
+ClientAliveInterval 15
+ClientAliveCountMax 4
+AcceptEnv LANG LC_*
+
+# override default of no subsystems
+Subsystem sftp /usr/lib/sftp-server
+
+# Example of overriding settings on a per-user basis
+#Match User anoncvs
+# X11Forwarding no
+# AllowTcpForwarding no
+# ForceCommand cvs server
diff --git a/target/pps/scripts/test_wifi.sh b/target/pps/init/S90guestcreation
old mode 100644
new mode 100755
similarity index 67%
copy from target/pps/scripts/test_wifi.sh
copy to target/pps/init/S90guestcreation
index 93e4324..52f10a5
--- a/target/pps/scripts/test_wifi.sh
+++ b/target/pps/init/S90guestcreation
@@ -1,3 +1,5 @@
+#!/bin/sh
+
#
# THE ARMADEUS PROJECT
#
@@ -16,19 +18,21 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-
-modprobe libertas_sdio
+#
-# shutdown other ports
-ifconfig usb0 down 2>/dev/null
-ifconfig eth0 down 2>/dev/null
-ifconfig usb1 down 2>/dev/null
+#
+# Script used to create and configure the user guest
+# to connect to PPS through SSH
+#
+# Jérémie Scheer <jer...@ar...>
+#
-ifconfig eth1 up
-iwconfig eth1 mode managed essid armadeus key restricted 93d7-e853-22e8-8784-0b4a-629c-ab
+echo "Configuring guest user"
+chown guest:1001 /home/guest
+mkdir /home/guest/.ssh
+chown guest:1001 /home/guest/.ssh
+chmod 750 /home/guest/.ssh
-ifconfig eth1 192.168.0.251
-sleep 1
-echo -e "\nTo check the wifi port, please browse on 192.168.0.251\n"
+touch /home/guest/.ssh/authorized_keys
+chown guest:1001 /home/guest/.ssh/authorized_keys
diff --git a/target/pps/configs/ipsec-tools.conf b/target/pps/scripts/configs/ipsec-tools.conf
similarity index 100%
rename from target/pps/configs/ipsec-tools.conf
rename to target/pps/scripts/configs/ipsec-tools.conf
diff --git a/target/pps/configs/profile b/target/pps/scripts/configs/profile
similarity index 100%
rename from target/pps/configs/profile
rename to target/pps/scripts/configs/profile
diff --git a/target/pps/configs/wpa_supplicant/networkConfig b/target/pps/scripts/configs/wpa_supplicant/networkConfig
similarity index 100%
rename from target/pps/configs/wpa_supplicant/networkConfig
rename to target/pps/scripts/configs/wpa_supplicant/networkConfig
diff --git a/target/pps/www/index.html b/target/pps/scripts/www/index.html
similarity index 100%
rename from target/pps/www/index.html
rename to target/pps/scripts/www/index.html
hooks/post-receive
--
armadeus
|