[Bug 817391] Review Request: jupiter - Jupiter Hardware Control System for Computers

bugzilla at redhat.com bugzilla at redhat.com
Thu May 17 01:07:49 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=817391

--- Comment #28 from Adrian Alves <aalves at gmail.com> 2012-05-16 21:07:48 EDT ---
how can I replace all this? what u guys did u recommend?
for i in $(awk -F: '$6 ~ /\/home/ && $3 >= 500 {print $1}' /etc/passwd);
 do
   echo -n $i" "
   usermod -G jupiter -a $i 2>/dev/null || true
 done
if [ -d "/etc/sudoers.d" ]; then
  if [ ! -e "/etc/sudoers.d/999-jupiter" ]; then
    sed -i "/%jupiter.*\$/d" /etc/sudoers
    echo "%jupiter ALL=NOPASSWD: /usr/lib/jupiter/scripts/bluetooth,
/usr/lib/jupiter/scripts/cpu-control, /usr/lib/jupiter/scripts/resolutions,
/usr/lib/jupiter/scripts/rotate, /usr/lib/jupiter/scripts/touchpad,
/usr/lib/jupiter/scripts/vga-out, /usr/lib/jupiter/scripts/wifi" >>
/etc/sudoers.d/999-jupiter
  fi
  chmod 0440 /etc/sudoers.d/999-jupiter
  chown root:root /etc/sudoers.d/999-jupiter
else
  grep jupiter /etc/sudoers >/dev/null 2>&1 || echo "%jupiter ALL=NOPASSWD:
/usr/lib/jupiter/scripts/bluetooth, /usr/lib/jupiter/scripts/cpu-control,
/usr/lib/jupiter/scripts/resolutions, /usr/lib/jupiter/scripts/rotate,
/usr/lib/jupiter/scripts/touchpad, /usr/lib/jupiter/scripts/vga-out,
/usr/lib/jupiter/scripts/wifi" >> /etc/sudoers
fi
sed -i "s/^Defaults[ \t]*requiretty/#Defaults    requiretty/g" /etc/sudoers
chown -R root:root /usr/lib/jupiter
chmod -R 755 /usr/lib/jupiter
chmod 755 /usr/bin/jupiter
chmod -R 755 /etc/pm/power.d/*jupiter*
if [ ! -d "/var/lib/jupiter" ]; then
  mkdir /var/lib/jupiter
fi
if [ -d "/var/lib/jupiter" ]; then
  chown -R root:jupiter /var/lib/jupiter
  chmod -R 775 /var/lib/jupiter
fi
if [ -e "/usr/lib/jupiter/scripts/jupiter" ]; then
  /usr/lib/jupiter/scripts/jupiter 2>/dev/null || true
fi

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list