ALT Linux Bugzilla
– Attachment 2286 Details for
Bug 11283
[FR] UUID/LABEL/dev?
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
deUUIDizer
renamer.sh (text/plain), 655 bytes, created by
Michael Shigorin
on 2007-11-23 16:04:15 MSK
(
hide
)
Description:
deUUIDizer
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2007-11-23 16:04:15 MSK
Size:
655 bytes
patch
obsolete
>#!/bin/bash > >if [ -f /etc/fstab -a ! -z /etc/fstab ] >then > cp -f /etc/fstab /etc/fstab.orig > if [ $? != 0 ] > then > echo "Error making reserve copy of fstab. Stopping script" > exit 1 > fi >else > echo "Smth wrong with /etc/fstab. Stopping script" > exit 1 >fi > >cat /etc/fstab |\ > while read line; do > if [ `echo $line |grep ^UUID|wc -l` != 0 ] > then > UUIDline=`echo $line |cut -d' ' -f 1` > blkid |sed s/\"// |grep "$UUIDline" |\ > while read blkidline; do > inblk=$blkidline > dev="`echo -n $inblk |cut -d: -f 1`" > rest="`echo $line |sed s/$UUIDline//`" > echo "$dev $rest" > done > else > echo $line > fi > done > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11283
: 2286