[SOLVED] How can I echo something in /proc/fs before remote fs mount?

I am not new to Linux but I am new to systemd and Arch Linux.
I think I need to write a systemd unit in /etc/systemd/system/myprocsettings.service like this:
[Unit]
Description=Write my settings in /proc
Before=remote-fs-pre.target
After=local-fs.target
DefaultDependencies=no
[Service]
ExecStart=/bin/sh -c 'modprobe cifs && sleep 2 && echo 0x27 > /proc/fs/cifs/SecurityFlags'
Type=oneshot
[Install]
WantedBy=remote-fs-pre.target
and then enable it with systemctl enable myprocsettings.service.
Is this correct? Am I going to break anything? Do I need to systemctl load before enable?
Last edited by dfulger (2013-01-18 10:41:35)

Use tmpfiles: https://wiki.archlinux.org/index.php/Sy … rary_files

Similar Messages

  • How can I delete something i´ve bought before from iTunes off of my iphone 4s? please help! ;)

    Hello, yesterday i got my new iphone 4s and in the category of music is still one title i´ve bought 3 years ago.. but i won´t listen to it in future..
    so here my question again: how can i delete it completely from my phone?
    thx for answering.. Alex

    of course.. i´ve already done that more than 10 times but it doesn´t work.. i dunno whats wrong with it
    when i delete it (dircet in the music app).. i can download it again.. but it isn´t completly removed, it´s still listed in my titles!
    on my pc i can´t do it anyways! it is not listed in iTunes.. so there is nothing to delete

  • How can i remove something from the favourite in finder?

    how can i remove something from the favourite in finder?

    previously you solved my problem but this time my preferneces>side bar is not displaying the item which i want to remove

  • How can i transfer something from my iphone to my ipad using bluethooth??

    how can i transfer something from my iphone to my ipad using bluethooth??

    You can use iTransfer.
    https://itunes.apple.com/sg/app/itransfer-share-files-ease/id480195086?mt=8

  • How can I remove something from my iTunes download list permanently?

    Same as title: how can I remove something from my download list FOREVA! Why would I want to do this? Because it's a piece of poo free sampler from Best Buy that is effing huge, and terrible and I don't want it, ever (it's been stuck to my list since 08, and it must die). Every time I buy something I have to remember to go and remove that from my list, otherwise iTunes gets caught up downloading that thing, which is many times larger than any video/cd/app that I have ever downloaded on iTunes before. It wouldn't be as much an issue if I had a good ISP but I don't, so any non-apple employee people giving some smarmy "get better internets" advice need not apply.

    Once an item enters the download queue, the user cannot remove it. Either let it complete the download (easiest) or contact the iTunes Store customer support department through the Contact page and ask them if they'll remove the item(s) from your queue for you.

  • HT201343 When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    Are you using mirroring or using airplay within iTunes? If you are truly mirroring then you can view anything that is displayed on your computer through Apple Tv
    Or provide more info on your issue

  • HT5887 How can I find something I airdropped to someone vis email. I cannot find it in my email

    How can I find something I airdropped to another via email. I cannot find it in my email box?

    I thought AirDrop uses Bluetooth.

  • The create facility in iPhoto is very basic - how can I download something like MS Publisher for my Mac Air?

    The create facility in iPhoto is pretty basic for cards & books etc. - how can I download something like MS Publisher for my Mac Air?

    Pages works pretty well, which should be on the App store:
    http://www.apple.com/iwork/pages/

  • How can I do something at exit ?

    Hi everyone,
    In C, we can do something at program exit with exit handler (atexit() function).
    In our Java application, we use JNI to invoke a native c function. In the C
    function, we attach an exit handler, then call a Java method through JNI.
    And, the System.exit() method is called in the java method called from C native function.
    In the case, we expect that the thread is terminated because of System.exit()
    and the exit handler ,which has been attached in C native code, do something.
    However, we can't see anything to be done by the exit handler.
    How can I do something at the exit in Java method called in a native C function?
    Thanks in advance

    Sorry....
    In the Runtime Class:
    Runtime.addShutdownHook(Thread hook)

  • HT4352 how can i watch something i've downloaded on Apple tv on my laptop?

    how can i watch something i've downloaded on Apple tv on my laptop?

    If it's a purchase then you would need to download it to your laptop by visiting the iTunes store - purchased (under quick links).
    If it's a rental it will only be viewable on the Apple TV.

  • How can I put something in for the last Wednesday of every month

    How can I put something in for the last Wednesday of every month

    I don't believe there is such a custom repeat option with the iPhone's Calendar app, but if you are syncing calendar events with a supported calendar app on your computer or syncing calendar events over the air with an email account that supports it with an option to create such a custom repeating event with the online calendar, set up the custom repeating event there.

  • How can I recover something I put in trash accidentally?

    How can I recover something I put in trash accidentally?

    DriveSavers Data Recovery | Service Plans
    Recover iPod - iPod Data Recovery Software for Windows & Mac OS X
    not cheap or may not be possible

  • (261936172) Q general How can I access an EJB hosted on a remote server?

    Q<general> How can I access an EJB hosted on a remote server?
    A<general> The ability to add EJB control files enables you to access an EJB that
    is deployed to the server on which your web service is running. When you select
    "add EJB control" you need to supply the home and remote interfaces for the EJB
    as well as the JNDI name. This does not provide you with the capability for creating
    a control for a remotely hosted EJB. To use a EJB hosted on another server you
    will have to provide the appropriate code within your web service itself. You
    will have to programmatically gain to access the JNDI for the remote server, lookup
    up the home stub and use it to create the remote stub for the EJB. Of course,
    to make this work you must have the necessary client interfaces in you classpath
    (home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
    file to the lib directory in the webservice WEB-INF folder.

    just define the different server path in the description xml file
    <jndi-name>jnp://serverA(B)/....</jndi-name>

  • I have a new iPod Touch, so how can I deauthorise my "old" iPod Touch before giving it to my brother or husband?

    I have a new iPod Touch, so how can I deauthorise my "old" iPod Touch, before giving it to my brother or husband?
    Thank you.

    Are you just trying to deauthorize it from your iTunes account, or do you want to totally erase it?
    Your iPod touch is not actually authorized to anything other than the computer you sync it with; it is not authorized with the iTunes store the way your computer is. Giving your iPod to someone else won't give them your store info. Once they plug it into their own iTunes, it will force them to erase the whole thing in order to sync it with their own computer.
    If you want to wipe the thing clean before giving it to them, plug it into your computer and choose the option to Restore it. (Or on the device itself, to go Settings > General > Reset > Erase All Content and Settings.)

  • I did an update on my ipad and now I have to restore it but it says I will lose everything How can I get my pictures on there before I restore my ipad to factory settings?

    I did an update on my ipad and now I have to restore it but it says I will lose everything How can I get my pictures on there before I restore my ipad to factory settings?

    They will be gone from the iphone, but you should be syning all contacts to your computer regularly and should be importing all pics to your computer regularly, particularly before any update.
    Have you failed to do this?

Maybe you are looking for