From 168e0379dfcdf6cba2be09d958ea6bbe1f197500 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Thu, 17 Jan 2013 14:35:30 +0100 Subject: Fix a typo in project name and add some files under version control --- scripts/inital-setup.csh | 19 ------------------- scripts/inital-setup.sh | 21 --------------------- scripts/initial-setup.csh | 19 +++++++++++++++++++ scripts/initial-setup.sh | 21 +++++++++++++++++++++ 4 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 scripts/inital-setup.csh delete mode 100644 scripts/inital-setup.sh create mode 100644 scripts/initial-setup.csh create mode 100644 scripts/initial-setup.sh (limited to 'scripts') diff --git a/scripts/inital-setup.csh b/scripts/inital-setup.csh deleted file mode 100644 index 85f7534..0000000 --- a/scripts/inital-setup.csh +++ /dev/null @@ -1,19 +0,0 @@ -# inital-setup.csh - -set IS_EXEC = /usr/sbin/inital-setup -set IS_CONF = /etc/sysconfig/inital-setup - -# check if we should run firstboot -grep -i "RUN_INITAL_SETUP=NO" $IS_CONF >/dev/null -if (( $? != 0 ) && ( -x $IS_EXEC )) then - # check if we're not on 3270 terminal and root - if (( `/sbin/consoletype` == "pty" ) && ( `/usr/bin/id -u` == 0 )) then - set args = "" - grep -i "reconfig" /proc/cmdline >/dev/null - if (( $? == 0 ) || ( -e /etc/reconfigSys )) then - set args = "--reconfig" - endif - - $IS_EXEC $args - endif -endif diff --git a/scripts/inital-setup.sh b/scripts/inital-setup.sh deleted file mode 100644 index bf5d774..0000000 --- a/scripts/inital-setup.sh +++ /dev/null @@ -1,21 +0,0 @@ -# firstboot.sh - -IS_EXEC=/usr/sbin/inital-setup -IS_CONF=/etc/sysconfig/inital-setup - -# source the config file -[ -f $IS_CONF ] && . $IS_CONF - -# check if we should run firstboot -if [ -f $IS_EXEC ] && [ "${RUN_INITAL_SETUP,,}" = "yes" ]; then - # check if we're not on 3270 terminal and root - if [ $(/sbin/consoletype) = "pty" ] && [ $EUID -eq 0 ]; then - args="" - if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then - args="--reconfig" - fi - - . /etc/sysconfig/i18n - $IS_EXEC $args - fi -fi diff --git a/scripts/initial-setup.csh b/scripts/initial-setup.csh new file mode 100644 index 0000000..8ea1975 --- /dev/null +++ b/scripts/initial-setup.csh @@ -0,0 +1,19 @@ +# initial-setup.csh + +set IS_EXEC = /usr/sbin/initial-setup +set IS_CONF = /etc/sysconfig/initial-setup + +# check if we should run firstboot +grep -i "RUN_INITAL_SETUP=NO" $IS_CONF >/dev/null +if (( $? != 0 ) && ( -x $IS_EXEC )) then + # check if we're not on 3270 terminal and root + if (( `/sbin/consoletype` == "pty" ) && ( `/usr/bin/id -u` == 0 )) then + set args = "" + grep -i "reconfig" /proc/cmdline >/dev/null + if (( $? == 0 ) || ( -e /etc/reconfigSys )) then + set args = "--reconfig" + endif + + $IS_EXEC $args + endif +endif diff --git a/scripts/initial-setup.sh b/scripts/initial-setup.sh new file mode 100644 index 0000000..511e70c --- /dev/null +++ b/scripts/initial-setup.sh @@ -0,0 +1,21 @@ +# firstboot.sh + +IS_EXEC=/usr/sbin/initial-setup +IS_CONF=/etc/sysconfig/initial-setup + +# source the config file +[ -f $IS_CONF ] && . $IS_CONF + +# check if we should run firstboot +if [ -f $IS_EXEC ] && [ "${RUN_INITAL_SETUP,,}" = "yes" ]; then + # check if we're not on 3270 terminal and root + if [ $(/sbin/consoletype) = "pty" ] && [ $EUID -eq 0 ]; then + args="" + if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then + args="--reconfig" + fi + + . /etc/sysconfig/i18n + $IS_EXEC $args + fi +fi -- cgit