Mageia Bugzilla – Attachment 1861 Details for
Bug 3550
/etc/fstab entries for removable media should be removed while installing Mageia2*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
/lib/systemd/mageia-media-mountpoints
mageia-media-mountpoints (text/plain), 270 bytes, created by
Dave Hodgins
on 2012-03-26 21:45:56 CEST
(
hide
)
Description:
/lib/systemd/mageia-media-mountpoints
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2012-03-26 21:45:56 CEST
Size:
270 bytes
patch
obsolete
>#!/bin/bash >oldIFS=$IFS >IFS=$'\n' >fstablines=($(grep /media /etc/fstab)) >unset IFS >for line in "${fstablines[@]}"; do > noncomment="${line%\#*}" > columns=($noncomment) > if (( ${#columns[@]} > 2 )) ; then > mkdir -p "${columns[1]}" > fi >done >IFS=$oldIFS >
#!/bin/bash oldIFS=$IFS IFS=$'\n' fstablines=($(grep /media /etc/fstab)) unset IFS for line in "${fstablines[@]}"; do noncomment="${line%\#*}" columns=($noncomment) if (( ${#columns[@]} > 2 )) ; then mkdir -p "${columns[1]}" fi done IFS=$oldIFS
View Attachment As Raw
Actions:
View
Attachments on
bug 3550
: 1861 |
1863