[scripts] uniform ". /etc/profile" usage

This commit is contained in:
Fabio Erculiani 2012-09-16 20:12:27 +02:00
parent 9026228337
commit 96b9416504
9 changed files with 24 additions and 10 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
# make sure there is no stale pid file around that prevents entropy from running
rm -f /var/run/entropy/entropy.lock

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
echo
echo "Configuring AMI root filesystem"
echo "Ext4 is the expected filesystem type"
@ -7,9 +10,6 @@ echo "/dev/sda1 is the expected root filesystem partition"
echo "ec2-user is the expected user"
echo
/usr/sbin/env-update
. /etc/profile
# setup networking, make sure networkmanager is gone
rc-update del NetworkManager boot
rc-update del NetworkManager default

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
# Setup Desktop links
# ARM Images links
ln -s "/mnt/cdrom/ARM" "/etc/skel/Desktop/ARM_Images"

View File

@ -1,12 +1,12 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
echo
echo "Configuring AMI chroot"
echo
/usr/sbin/env-update
. /etc/profile
# setup networking, make sure networkmanager is gone
rc-update del networkmanager default &> /dev/null
# add eth0, should get dhcp by default already

View File

@ -1,5 +1,8 @@
#!/bin/bash
/usr/sbin/env-update
. /etc/profile
# create /proc if it doesn't exist
# rsync doesn't copy it
if [ ! -d "/proc" ]; then
@ -19,9 +22,6 @@ rm -rf /root
cp /etc/skel /root -Rap
chown root:root /root -R
/usr/sbin/env-update
. /etc/profile
# Setup locale to en_US
echo LANG=\"en_US.UTF-8\" > /etc/env.d/02locale
echo LANGUAGE=\"en_US.UTF-8\" >> /etc/env.d/02locale

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
# FUTURE NOTE:
# this might get merged into remaster_generic_inner_chroot_script_after.sh
# once the Gaming Edition will be rebased on top of SpinBase, now it's based

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
# make sure there is no stale pid file around that prevents entropy from running
rm -f /var/run/entropy/entropy.lock

View File

@ -1,6 +1,5 @@
#!/bin/bash
# do not remove these
/usr/sbin/env-update
. /etc/profile

View File

@ -1,5 +1,8 @@
#!/bin/sh
/usr/sbin/env-update
. /etc/profile
rc-update del installer-gui boot
rc-update del x-setup boot
rc-update del hald boot