From LocalizationWiki
--- etc/init.d/morphix-start 2005-03-31 18:45:50.000000000 -0500
+++ /base/etc/init.d/morphix-start 2006-01-13 07:02:03.000000000 -0500
@@ -789,9 +789,9 @@
rm -rf /mnt/main/home/$USERNAME
# add the $USERNAME user, with a default homedir in /home/$USERNAME
# files are copied from /etc/skel in the main module
- chroot /mnt/main useradd -m $USERNAME -s /bin/bash
+ chroot /mnt/main useradd -m $USERNAME -s /bin/bash -p `/usr/bin/mkpasswd $USERNAME`
else
- chroot /mnt/main useradd -s /bin/bash $USERNAME
+ chroot /mnt/main useradd -s /bin/bash $USERNAME -p `/usr/bin/mkpasswd $USERNAME`
chroot /mnt/main chown -R $USERNAME.users /home/$USERNAME
fi
@@ -976,7 +976,7 @@
USERNAME="$(getbootparam username)"
if [ -z $USERNAME ]; then
- USERNAME="morph"
+ USERNAME="bhutan"
fi
echo "$USERNAME" >> /etc/sysconfig/username
export USERNAME
@@ -1019,9 +1019,13 @@
if [ -z "$USBSTORAGE" -a -z "$USBBOOTING" ]; then
modprobe usb-storage >/dev/null 2>&1
mkdir /mnt/sda1 >/dev/null 2>&1
+ mkdir /mnt/sda >/dev/null 2>&1
ln -s /mnt/sda1 /mnt/usb >/dev/null 2>&1
+ ln -s /mnt/sda /mnt/usb >/dev/null 2>&1
echo "/dev/sda1 /mnt/sda1 auto noauto,users,exec,umask=000,uid=$USERNAME 0 0" >> /etc/fstab
+ echo "/dev/sda /mnt/sda auto noauto,users,exec,umask=000,uid=$USERNAME 0 0" >> /etc/fstab
mount /mnt/sda1 >/dev/null 2>&1
+ mount /mnt/sda >/dev/null 2>&1
fi