Guest User

Untitled

a guest
Jul 19th, 2014
227
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- ubu-chroot.or
  2. +++ ubu-chroot
  3. @@ -246,10 +246,10 @@
  4.         echo "Entering chroot as $user"
  5.         if grep squeeze ${uburoot}/etc/debian_version > /dev/null; then
  6.         # For older 10.04
  7. -       setarch x86_64 chroot ${uburoot} /usr/bin/sudo -i -u $user "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup -i";
  8. +       SHELL=/bin/bash setarch x86_64 chroot ${uburoot} /usr/bin/sudo -s -u $user "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup -i";
  9.         elif grep wheezy ${uburoot}/etc/debian_version > /dev/null; then
  10.         # This is for ubuntu 12.04 (arg quoting for sudo is different)
  11. -       setarch x86_64 chroot ${uburoot} /usr/bin/sudo -i -u $user exec bash -i -c "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
  12. +       SHELL=/bin/bash setarch x86_64 chroot ${uburoot} /usr/bin/sudo -s -u $user exec bash -i -c "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
  13.         else
  14.         echo Unknown ubuntu version
  15.         exit 1
RAW Paste Data