/[baselayout]/branches/bsd-porting-2/init.d/halt.sh
Gentoo

Diff of /branches/bsd-porting-2/init.d/halt.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2015 Revision 2016
80 gawk '{ \ 80 gawk '{ \
81 if (($3 !~ /^(proc|devpts|sysfs|devfs|tmpfs|usb(dev)?fs)$/) && \ 81 if (($3 !~ /^(proc|devpts|sysfs|devfs|tmpfs|usb(dev)?fs)$/) && \
82 ($1 != "none") && \ 82 ($1 != "none") && \
83 ($1 !~ /^(rootfs|\/dev\/root)$/) && \ 83 ($1 !~ /^(rootfs|\/dev\/root)$/) && \
84 ($2 != "/")) \ 84 ($2 != "/")) \
85 print $2 }' /proc/mounts | sort -k2 -ur) 85 print $2 }' /proc/mounts | sort -ur)
86for x in ${unmounts}; do 86for x in ${unmounts}; do
87 # Do not umount these if we are booting off a livecd 87 # Do not umount these if we are booting off a livecd
88 if [[ -n ${CDBOOT} ]] && \ 88 if [[ -n ${CDBOOT} ]] && \
89 [[ ${x} == "/mnt/cdrom" || ${x} == "/mnt/livecd" ]] ; then 89 [[ ${x} == "/mnt/cdrom" || ${x} == "/mnt/livecd" ]] ; then
90 continue 90 continue

Legend:
Removed from v.2015  
changed lines
  Added in v.2016

  ViewVC Help
Powered by ViewVC 1.1.20