Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 21:03:09 GMT
From:      kczekirda@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r269883 - in soc2014/kczekirda/pxe-fai-head: head/usr.sbin/bsdinstall/scripts others tools/mfsbsd/customfiles/etc
Message-ID:  <201406222103.s5ML393v003569@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kczekirda
Date: Sun Jun 22 21:03:09 2014
New Revision: 269883
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269883

Log:
  users

Added:
  soc2014/kczekirda/pxe-fai-head/tools/mfsbsd/customfiles/etc/usersconfig
Modified:
  soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/script
  soc2014/kczekirda/pxe-fai-head/others/template.input

Modified: soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/script
==============================================================================
--- soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/script	Sun Jun 22 21:03:02 2014	(r269882)
+++ soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/script	Sun Jun 22 21:03:09 2014	(r269883)
@@ -78,6 +78,7 @@
 # DNS2V6
 
 # ROOTPWHASH
+# USERSCONFIG
 
 ############################################################ GLOBALS
 
@@ -176,6 +177,14 @@
         echo "echo '$ROOTPWHASH' | pw user mod root -H 0" >> /tmp/bsdinstall-installscript-ab
 fi
 
+# Users
+if [ -n "$USERSCONFIG" ]; then
+    if [ ! -f /tmp/bsdinstall-installscript-ab ]; then
+        echo "#!/bin/sh" > /tmp/bsdinstall-installscript-ab
+    fi
+        echo "adduser -f $USERSCONFIG" >> /tmp/bsdinstall-installscript-ab
+fi
+
 # Make partitions
 rm -f $PATH_FSTAB
 touch $PATH_FSTAB

Modified: soc2014/kczekirda/pxe-fai-head/others/template.input
==============================================================================
--- soc2014/kczekirda/pxe-fai-head/others/template.input	Sun Jun 22 21:03:02 2014	(r269882)
+++ soc2014/kczekirda/pxe-fai-head/others/template.input	Sun Jun 22 21:03:09 2014	(r269883)
@@ -24,6 +24,7 @@
 #DNS1V6="2001:4860:4860::8888"
 #DNS2V6="2001:4860:4860::8844"
 ROOTPWHASH='$6$Qb2inVrU65.r4Dx5$DaHdU2P1ipFMLZ8J5xJk8DDtC88rE87qo7du6CBvNgyit8RezQ2qkPe83X4KgTCTEtXGrMaMKZ1.W4xg1yz0z/'
+USERS="/etc/usersconfig"
 
 #!/bin/sh
 echo "Installation complete, running in host system"

Added: soc2014/kczekirda/pxe-fai-head/tools/mfsbsd/customfiles/etc/usersconfig
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2014/kczekirda/pxe-fai-head/tools/mfsbsd/customfiles/etc/usersconfig	Sun Jun 22 21:03:09 2014	(r269883)
@@ -0,0 +1 @@
+test::::::Test User::/bin/csh:$6$1600DQdexR3/w33x$co/QX4V85F1Nqv/wlpV2LKX45t/dwrTAPeWVv2RkZ9hNHpySvYudkOe3iTuhwWjpk5svHrmu4zAQqqh0JO8tl/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406222103.s5ML393v003569>